new method for backspace
This commit is contained in:
parent
39a199cc7b
commit
e1574c38e5
1 changed files with 7 additions and 5 deletions
|
|
@ -119,10 +119,12 @@ abstract class KeyPadHandler extends InputMethodService {
|
|||
// Logger.d("onKeyDown", "Key: " + event + " repeat?: " + event.getRepeatCount() + " long-time: " + event.isLongPress());
|
||||
|
||||
// "backspace" key must repeat its function when held down, so we handle it in a special way
|
||||
if (Key.isBackspace(settings, keyCode) && onBackspace()) {
|
||||
return isBackspaceHandled = true;
|
||||
} else {
|
||||
isBackspaceHandled = false;
|
||||
if (Key.isBackspace(settings, keyCode)) {
|
||||
if (onBackspace()) {
|
||||
return isBackspaceHandled = true;
|
||||
} else {
|
||||
isBackspaceHandled = false;
|
||||
}
|
||||
}
|
||||
|
||||
// start tracking key hold
|
||||
|
|
@ -197,7 +199,7 @@ abstract class KeyPadHandler extends InputMethodService {
|
|||
return true;
|
||||
}
|
||||
|
||||
if (isBackspaceHandled) {
|
||||
if (Key.isBackspace(settings, keyCode) && isBackspaceHandled) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue