Skip to content

Commit

Permalink
Handle Ctrl+Z as undo
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbieNesmith committed Sep 4, 2024
1 parent 707eabe commit 1ce2f3f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,11 @@ public boolean onKeyDown(int keyCode, KeyEvent event) {
case KeyEvent.KEYCODE_DPAD_DOWN:
handleSwipeBottom();
return true;
case KeyEvent.KEYCODE_Z:
if (event.isCtrlPressed()) {
handleUndo();
}
return true;
}
return super.onKeyDown(keyCode, event);
}
Expand Down

0 comments on commit 1ce2f3f

Please sign in to comment.