mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
* commit 'e32a77c691567bdb3031d877e80786508bd47e4a': Bugfix: IME gives haptic feedback when button wasn't pressed
This commit is contained in:
commit
37a0f2d5de
@ -277,11 +277,12 @@ public class PointerTracker {
|
||||
mIsRepeatableKey = false;
|
||||
checkMultiTap(eventTime, keyIndex);
|
||||
if (mListener != null) {
|
||||
int primaryCode = isValidKeyIndex(keyIndex) ? mKeys[keyIndex].codes[0] : 0;
|
||||
mListener.onPress(primaryCode);
|
||||
// This onPress call may have changed keyboard layout and have updated mKeyIndex.
|
||||
// If that's the case, mKeyIndex has been updated in setKeyboard().
|
||||
keyIndex = mKeyState.getKeyIndex();
|
||||
if (isValidKeyIndex(keyIndex)) {
|
||||
mListener.onPress(mKeys[keyIndex].codes[0]);
|
||||
// This onPress call may have changed keyboard layout and have updated mKeyIndex.
|
||||
// If that's the case, mKeyIndex has been updated in setKeyboard().
|
||||
keyIndex = mKeyState.getKeyIndex();
|
||||
}
|
||||
}
|
||||
if (isValidKeyIndex(keyIndex)) {
|
||||
if (mKeys[keyIndex].repeatable) {
|
||||
|
Loading…
Reference in New Issue
Block a user