1
0
Fork 0

removed the last of the legacy Backspace hack (#318)

---------

Co-authored-by: Alex Knop <alexknoptech@protonmail.com>
Co-authored-by: Dimo Karaivanov <doftor.livain@gmail.com>
This commit is contained in:
alexknop 2023-07-28 04:40:43 -04:00 committed by GitHub
parent 8ce404d2b6
commit 49eda37b99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;