Removing C-j and C-k from completion menu navigation (#5070)
This commit is contained in:
parent
f0c2e898b4
commit
61e1e6160a
1 changed files with 2 additions and 2 deletions
|
@ -252,12 +252,12 @@ impl<T: Item + 'static> Component for Menu<T> {
|
|||
return EventResult::Consumed(close_fn);
|
||||
}
|
||||
// arrow up/ctrl-p/shift-tab prev completion choice (including updating the doc)
|
||||
shift!(Tab) | key!(Up) | ctrl!('p') | ctrl!('k') => {
|
||||
shift!(Tab) | key!(Up) | ctrl!('p') => {
|
||||
self.move_up();
|
||||
(self.callback_fn)(cx.editor, self.selection(), MenuEvent::Update);
|
||||
return EventResult::Consumed(None);
|
||||
}
|
||||
key!(Tab) | key!(Down) | ctrl!('n') | ctrl!('j') => {
|
||||
key!(Tab) | key!(Down) | ctrl!('n') => {
|
||||
// arrow down/ctrl-n/tab advances completion choice (including updating the doc)
|
||||
self.move_down();
|
||||
(self.callback_fn)(cx.editor, self.selection(), MenuEvent::Update);
|
||||
|
|
Loading…
Add table
Reference in a new issue