on master help sign in
Removing C-j and C-k from completion menu navigation (#5070)
commit61e1e6160afe2c6d0f1b9060112929957bba4e5f authorDylan Bulfin <31492860+DylanBulfin@users.noreply.github.com> dateThu 2 Feb 2023, 14:49 (4 years ago) parentf0c2e89
1 file changed+2−2
helix-term/src/ui/menu.rs+2−2
helix-term/src/ui/menu.rs+2−2
@@ -252,12 +252,12 @@ impl<T: Item + 'static> Component for Menu<T> {
252252 return EventResult::Consumed(close_fn);
253253 }
254254 // arrow up/ctrl-p/shift-tab prev completion choice (including updating the doc)
255− shift!(Tab) | key!(Up) | ctrl!('p') | ctrl!('k') => {
255+ shift!(Tab) | key!(Up) | ctrl!('p') => {
256256 self.move_up();
257257 (self.callback_fn)(cx.editor, self.selection(), MenuEvent::Update);
258258 return EventResult::Consumed(None);
259259 }
260− key!(Tab) | key!(Down) | ctrl!('n') | ctrl!('j') => {
260+ key!(Tab) | key!(Down) | ctrl!('n') => {
261261 // arrow down/ctrl-n/tab advances completion choice (including updating the doc)
262262 self.move_down();
263263 (self.callback_fn)(cx.editor, self.selection(), MenuEvent::Update);