mirror of
https://github.com/FossifyOrg/Keyboard.git
synced 2026-09-27 20:45:35 -04:00
do not crash on pressing the empty space near A or L
This commit is contained in:
1 parent
7457808c49
commit
e69a48aa0f
1 file changed
+1
-1
@@ -1224,7 +1224,7 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
|
||||
detectAndSendKey(mCurrentKey, touchX, touchY, eventTime)
|
||||
}
|
||||
|
||||
if (mKeys[mCurrentKey].codes.firstOrNull() == MyKeyboard.KEYCODE_SPACE && !mIsLongPressingSpace) {
|
||||
if (mKeys.getOrNull(mCurrentKey)?.codes?.firstOrNull() == MyKeyboard.KEYCODE_SPACE && !mIsLongPressingSpace) {
|
||||
detectAndSendKey(mCurrentKey, touchX, touchY, eventTime)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user