mirror of
https://github.com/SimpleMobileTools/Simple-Keyboard.git
synced 2025-02-19 21:30:47 +01:00
fix #30, fixing a glitch with backspace getting stuck
This commit is contained in:
parent
00cd9b4442
commit
9c5cf0b1c9
@ -1002,6 +1002,15 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
|
|||||||
if (ignoreTouches) {
|
if (ignoreTouches) {
|
||||||
if (action == MotionEvent.ACTION_UP) {
|
if (action == MotionEvent.ACTION_UP) {
|
||||||
ignoreTouches = false
|
ignoreTouches = false
|
||||||
|
|
||||||
|
// fix a glitch with long pressing backspace, then clicking some letter
|
||||||
|
if (mRepeatKeyIndex != NOT_A_KEY) {
|
||||||
|
val key = mKeys[mRepeatKeyIndex]
|
||||||
|
if (key.code == KEYCODE_DELETE) {
|
||||||
|
mHandler?.removeMessages(MSG_REPEAT)
|
||||||
|
mRepeatKeyIndex = NOT_A_KEY
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user