Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit 848eb41

Browse files
committed
Fix issue with shift and multi tapping
1 parent 7ae9302 commit 848eb41

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

app/src/common/shared/org/mozilla/vrbrowser/ui/views/CustomKeyboardView.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1507,7 +1507,10 @@ private void checkMultiTap(long eventTime, int keyIndex) {
15071507
}
15081508

15091509
} else if (key.codes[0] == CustomKeyboard.KEYCODE_SHIFT) {
1510-
mInMultiTap = true;
1510+
if (eventTime < mLastTapTime + MULTITAP_INTERVAL
1511+
&& keyIndex == mLastSentIndex) {
1512+
mInMultiTap = true;
1513+
}
15111514
}
15121515

15131516
if (eventTime > mLastTapTime + MULTITAP_INTERVAL || keyIndex != mLastSentIndex) {

0 commit comments

Comments
 (0)