diff options
author | CossonLeo | 2021-10-26 00:42:08 +0000 |
---|---|---|
committer | GitHub | 2021-10-26 00:42:08 +0000 |
commit | bca98b5bedfa6c9410384f26a2df6115874351bc (patch) | |
tree | 905934bcd8101dafe8449560257fc6afb6886669 /helix-term/src | |
parent | a0cb9d82d1245253698bd7e319b07ae50adb715d (diff) |
Add c-j c-k to menu keymap for move_up move_down (#908)
Diffstat (limited to 'helix-term/src')
-rw-r--r-- | helix-term/src/ui/menu.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/helix-term/src/ui/menu.rs b/helix-term/src/ui/menu.rs index 1130089d..dd163d34 100644 --- a/helix-term/src/ui/menu.rs +++ b/helix-term/src/ui/menu.rs @@ -214,6 +214,10 @@ impl<T: Item + 'static> Component for Menu<T> { | KeyEvent { code: KeyCode::Char('p'), modifiers: KeyModifiers::CONTROL, + } + | KeyEvent { + code: KeyCode::Char('k'), + modifiers: KeyModifiers::CONTROL, } => { self.move_up(); (self.callback_fn)(cx.editor, self.selection(), MenuEvent::Update); @@ -231,6 +235,10 @@ impl<T: Item + 'static> Component for Menu<T> { | KeyEvent { code: KeyCode::Char('n'), modifiers: KeyModifiers::CONTROL, + } + | KeyEvent { + code: KeyCode::Char('j'), + modifiers: KeyModifiers::CONTROL, } => { self.move_down(); (self.callback_fn)(cx.editor, self.selection(), MenuEvent::Update); |