From 5582b33ed716692ec62183ae7fb2e5f8704b399e Mon Sep 17 00:00:00 2001 From: Bill Farmer Date: Wed, 21 Feb 2024 13:34:18 +0000 Subject: [PATCH] Update keyboard shortcuts --- src/main/java/org/billthefarmer/editor/Editor.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/org/billthefarmer/editor/Editor.java b/src/main/java/org/billthefarmer/editor/Editor.java index 14efef9..8375f06 100644 --- a/src/main/java/org/billthefarmer/editor/Editor.java +++ b/src/main/java/org/billthefarmer/editor/Editor.java @@ -1208,11 +1208,20 @@ public boolean onKeyDown(int keyCode, KeyEvent event) searchItem.collapseActionView(); else searchItem.expandActionView(); + // Find next + if (event.isAltPressed() && + searchItem.isActionViewExpanded()) + queryTextListener.onQueryTextSubmit + (searchView.getQuery().toString()); break; // Goto case KeyEvent.KEYCODE_G: goTo(); break; + // Menu + case KeyEvent.KEYCODE_M: + openOptionsMenu(); + break; // New case KeyEvent.KEYCODE_N: newFile();