From 1bb9977fafc145448e4ea77f4cb3a132d1542bfa Mon Sep 17 00:00:00 2001 From: Kevin Sjöberg Date: Tue, 8 Jun 2021 20:50:23 +0200 Subject: Match keybindings of menu --- helix-term/src/ui/picker.rs | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'helix-term/src') diff --git a/helix-term/src/ui/picker.rs b/helix-term/src/ui/picker.rs index 494753c5..0674f4cc 100644 --- a/helix-term/src/ui/picker.rs +++ b/helix-term/src/ui/picker.rs @@ -151,7 +151,11 @@ impl Component for Picker { code: KeyCode::Up, .. } | KeyEvent { - code: KeyCode::Char('k'), + code: KeyCode::BackTab, + .. + } + | KeyEvent { + code: KeyCode::Char('p'), modifiers: KeyModifiers::CONTROL, } => self.move_up(), KeyEvent { @@ -159,11 +163,18 @@ impl Component for Picker { .. } | KeyEvent { - code: KeyCode::Char('j'), + code: KeyCode::Tab, .. + } + | KeyEvent { + code: KeyCode::Char('n'), modifiers: KeyModifiers::CONTROL, } => self.move_down(), KeyEvent { code: KeyCode::Esc, .. + } + | KeyEvent { + code: KeyCode::Char('c'), + modifiers: KeyModifiers::CONTROL, } => { return close_fn; } -- cgit v1.2.3-70-g09d2