mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-12-01 19:58:12 +03:00
Match keybindings of menu
This commit is contained in:
parent
29962a5bd9
commit
1bb9977faf
@ -151,7 +151,11 @@ impl<T: 'static> Component for Picker<T> {
|
|||||||
code: KeyCode::Up, ..
|
code: KeyCode::Up, ..
|
||||||
}
|
}
|
||||||
| KeyEvent {
|
| KeyEvent {
|
||||||
code: KeyCode::Char('k'),
|
code: KeyCode::BackTab,
|
||||||
|
..
|
||||||
|
}
|
||||||
|
| KeyEvent {
|
||||||
|
code: KeyCode::Char('p'),
|
||||||
modifiers: KeyModifiers::CONTROL,
|
modifiers: KeyModifiers::CONTROL,
|
||||||
} => self.move_up(),
|
} => self.move_up(),
|
||||||
KeyEvent {
|
KeyEvent {
|
||||||
@ -159,11 +163,18 @@ impl<T: 'static> Component for Picker<T> {
|
|||||||
..
|
..
|
||||||
}
|
}
|
||||||
| KeyEvent {
|
| KeyEvent {
|
||||||
code: KeyCode::Char('j'),
|
code: KeyCode::Tab, ..
|
||||||
|
}
|
||||||
|
| KeyEvent {
|
||||||
|
code: KeyCode::Char('n'),
|
||||||
modifiers: KeyModifiers::CONTROL,
|
modifiers: KeyModifiers::CONTROL,
|
||||||
} => self.move_down(),
|
} => self.move_down(),
|
||||||
KeyEvent {
|
KeyEvent {
|
||||||
code: KeyCode::Esc, ..
|
code: KeyCode::Esc, ..
|
||||||
|
}
|
||||||
|
| KeyEvent {
|
||||||
|
code: KeyCode::Char('c'),
|
||||||
|
modifiers: KeyModifiers::CONTROL,
|
||||||
} => {
|
} => {
|
||||||
return close_fn;
|
return close_fn;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user