Skip to content

Commit

Permalink
Cancel keyboard presses if keydown was produced on a different key (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro authored and bluemarvin committed Apr 10, 2019
1 parent 8b05b8d commit bf63daa
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1363,7 +1363,7 @@ private boolean onModifiedTouchEvent(MotionEvent me, boolean possiblePoly) {
showPreview(NOT_A_KEY);
Arrays.fill(mKeyIndices, NOT_A_KEY);
// If we're not on a repeating key (which sends on a DOWN event)
if (mRepeatKeyIndex == NOT_A_KEY && !mMiniKeyboardOnScreen && !mAbortKey) {
if (mRepeatKeyIndex == NOT_A_KEY && !mMiniKeyboardOnScreen && !mAbortKey && mDownKey == keyIndex) {
detectAndSendKey(mCurrentKey, touchX, touchY, eventTime);
}
invalidateKey(keyIndex);
Expand Down

0 comments on commit bf63daa

Please sign in to comment.