From 49eda37b990c1c6ce69d9d8b64cd91268af910b1 Mon Sep 17 00:00:00 2001 From: alexknop Date: Fri, 28 Jul 2023 04:40:43 -0400 Subject: [PATCH] removed the last of the legacy Backspace hack (#318) --------- Co-authored-by: Alex Knop Co-authored-by: Dimo Karaivanov --- src/io/github/sspanak/tt9/ime/KeyPadHandler.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/io/github/sspanak/tt9/ime/KeyPadHandler.java b/src/io/github/sspanak/tt9/ime/KeyPadHandler.java index 13824532..13b52932 100644 --- a/src/io/github/sspanak/tt9/ime/KeyPadHandler.java +++ b/src/io/github/sspanak/tt9/ime/KeyPadHandler.java @@ -120,9 +120,7 @@ abstract class KeyPadHandler extends InputMethodService { // "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;