Skip to content

Commit

Permalink
Update keyboard shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
billthefarmer committed Feb 21, 2024
1 parent 7727859 commit 5582b33
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/java/org/billthefarmer/editor/Editor.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5582b33

Please sign in to comment.