Skip to content

Commit d372956

Browse files
committed
Improved if statements for detectAndSendKey
1 parent 56d3ff4 commit d372956

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/src/main/kotlin/com/simplemobiletools/keyboard/views/MyKeyboardView.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1396,9 +1396,7 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
13961396
// If we're not on a repeating key (which sends on a DOWN event)
13971397
if (mRepeatKeyIndex == NOT_A_KEY && !mMiniKeyboardOnScreen && !mAbortKey) {
13981398
detectAndSendKey(mCurrentKey, touchX, touchY, eventTime)
1399-
}
1400-
1401-
if (currentKeyCode == KEYCODE_SPACE && !mIsLongPressingSpace) {
1399+
} else if (currentKeyCode == KEYCODE_SPACE && !mIsLongPressingSpace) {
14021400
detectAndSendKey(mCurrentKey, touchX, touchY, eventTime)
14031401
}
14041402

0 commit comments

Comments
 (0)