Fix: dict popup in editor is less intrusive

This commit is contained in:
2026-02-03 17:02:07 +01:00
parent 9b5759d794
commit 96489c8f72
3 changed files with 25 additions and 14 deletions

View File

@@ -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);