Skip to content

Commit

Permalink
removed the last of the legacy Backspace hack (#318)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Alex Knop <alexknoptech@protonmail.com>
Co-authored-by: Dimo Karaivanov <doftor.livain@gmail.com>
  • Loading branch information
3 people committed Jul 28, 2023
1 parent 8ce404d commit 49eda37
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/io/github/sspanak/tt9/ime/KeyPadHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,7 @@ public boolean onKeyDown(int keyCode, KeyEvent event) {

// "backspace" key must repeat its function when held down, so we handle it in a special way
if (Key.isBackspace(settings, keyCode)) {
// When there is no more text, allow "Back" key to function normally, not to block navigation.
// All other keys have their default function disabled.
isBackspaceHandled = onBackspace() || keyCode != KeyEvent.KEYCODE_BACK;
isBackspaceHandled = onBackspace();
return isBackspaceHandled;
} else {
isBackspaceHandled = false;
Expand Down

0 comments on commit 49eda37

Please sign in to comment.