mirror of
https://github.com/FossifyOrg/Keyboard.git
synced 2026-09-23 18:45:13 -04:00
Improved if statements for detectAndSendKey
This commit is contained in:
1 parent
56d3ff4b85
commit
d372956540
1 file changed
+1
-3
@@ -1396,9 +1396,7 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
|
||||
// If we're not on a repeating key (which sends on a DOWN event)
|
||||
if (mRepeatKeyIndex == NOT_A_KEY && !mMiniKeyboardOnScreen && !mAbortKey) {
|
||||
detectAndSendKey(mCurrentKey, touchX, touchY, eventTime)
|
||||
}
|
||||
|
||||
if (currentKeyCode == KEYCODE_SPACE && !mIsLongPressingSpace) {
|
||||
} else if (currentKeyCode == KEYCODE_SPACE && !mIsLongPressingSpace) {
|
||||
detectAndSendKey(mCurrentKey, touchX, touchY, eventTime)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user