am e32a77c6: am 9dce586e: Bugfix: IME gives haptic feedback when button wasn\'t pressed
* commit 'e32a77c691567bdb3031d877e80786508bd47e4a': Bugfix: IME gives haptic feedback when button wasn't pressedmain
commit
37a0f2d5de
|
@ -277,12 +277,13 @@ public class PointerTracker {
|
||||||
mIsRepeatableKey = false;
|
mIsRepeatableKey = false;
|
||||||
checkMultiTap(eventTime, keyIndex);
|
checkMultiTap(eventTime, keyIndex);
|
||||||
if (mListener != null) {
|
if (mListener != null) {
|
||||||
int primaryCode = isValidKeyIndex(keyIndex) ? mKeys[keyIndex].codes[0] : 0;
|
if (isValidKeyIndex(keyIndex)) {
|
||||||
mListener.onPress(primaryCode);
|
mListener.onPress(mKeys[keyIndex].codes[0]);
|
||||||
// This onPress call may have changed keyboard layout and have updated mKeyIndex.
|
// This onPress call may have changed keyboard layout and have updated mKeyIndex.
|
||||||
// If that's the case, mKeyIndex has been updated in setKeyboard().
|
// If that's the case, mKeyIndex has been updated in setKeyboard().
|
||||||
keyIndex = mKeyState.getKeyIndex();
|
keyIndex = mKeyState.getKeyIndex();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (isValidKeyIndex(keyIndex)) {
|
if (isValidKeyIndex(keyIndex)) {
|
||||||
if (mKeys[keyIndex].repeatable) {
|
if (mKeys[keyIndex].repeatable) {
|
||||||
repeatKey(keyIndex);
|
repeatKey(keyIndex);
|
||||||
|
|
Loading…
Reference in New Issue