Fix: dict popup in editor is less intrusive
This commit is contained in:
12
src/input.rs
12
src/input.rs
@@ -501,10 +501,18 @@ fn handle_modal_input(ctx: &mut InputContext, key: KeyEvent) -> InputResult {
|
||||
editor.activate_search();
|
||||
}
|
||||
KeyCode::Char('n') if ctrl => {
|
||||
editor.search_next();
|
||||
if editor.completion_active() {
|
||||
editor.completion_next();
|
||||
} else {
|
||||
editor.search_next();
|
||||
}
|
||||
}
|
||||
KeyCode::Char('p') if ctrl => {
|
||||
editor.search_prev();
|
||||
if editor.completion_active() {
|
||||
editor.completion_prev();
|
||||
} else {
|
||||
editor.search_prev();
|
||||
}
|
||||
}
|
||||
KeyCode::Char('s') if ctrl => {
|
||||
ctx.dispatch(AppCommand::ToggleEditorStack);
|
||||
|
||||
Reference in New Issue
Block a user