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:
parent
8ce404d2b6
commit
49eda37b99
1 changed files with 1 additions and 3 deletions
|
|
@ -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
|
// "backspace" key must repeat its function when held down, so we handle it in a special way
|
||||||
if (Key.isBackspace(settings, keyCode)) {
|
if (Key.isBackspace(settings, keyCode)) {
|
||||||
// When there is no more text, allow "Back" key to function normally, not to block navigation.
|
isBackspaceHandled = onBackspace();
|
||||||
// All other keys have their default function disabled.
|
|
||||||
isBackspaceHandled = onBackspace() || keyCode != KeyEvent.KEYCODE_BACK;
|
|
||||||
return isBackspaceHandled;
|
return isBackspaceHandled;
|
||||||
} else {
|
} else {
|
||||||
isBackspaceHandled = false;
|
isBackspaceHandled = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue