Refactored filtering and searching logic to be more clean and added home/end support in tables.
This commit is contained in:
1 parent
864dd4e331
commit
24a36443e9
7 files changed
+223
-96
No files matched your search
@@ -12,6 +12,8 @@ pub enum Key {
|
||||
Enter,
|
||||
Esc,
|
||||
Backspace,
|
||||
Home,
|
||||
End,
|
||||
Char(char),
|
||||
Unknown,
|
||||
}
|
||||
@@ -47,6 +49,14 @@ impl From<KeyEvent> for Key {
|
||||
code: KeyCode::Backspace,
|
||||
..
|
||||
} => Key::Backspace,
|
||||
KeyEvent {
|
||||
code: KeyCode::Home,
|
||||
..
|
||||
} => Key::Home,
|
||||
KeyEvent {
|
||||
code: KeyCode::End,
|
||||
..
|
||||
} => Key::End,
|
||||
KeyEvent {
|
||||
code: KeyCode::Enter,
|
||||
..
|
||||
|
||||
Reference in new issue
Block a user