mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Suppress calling onPressKey and onReleaseKey while detecting gesture"
This commit is contained in:
commit
f224941c37
@ -441,7 +441,7 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
|
||||
|
||||
// Returns true if keyboard has been changed by this callback.
|
||||
private boolean callListenerOnPressAndCheckKeyboardLayoutChange(final Key key) {
|
||||
if (sInGesture) {
|
||||
if (sInGesture || mIsDetectingGesture) {
|
||||
return false;
|
||||
}
|
||||
final boolean ignoreModifierKey = mIsInSlidingKeyInputFromModifier && key.isModifier();
|
||||
@ -500,7 +500,7 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
|
||||
// primaryCode is different from {@link Key#mCode}.
|
||||
private void callListenerOnRelease(final Key key, final int primaryCode,
|
||||
final boolean withSliding) {
|
||||
if (sInGesture) {
|
||||
if (sInGesture || mIsDetectingGesture) {
|
||||
return;
|
||||
}
|
||||
final boolean ignoreModifierKey = mIsInSlidingKeyInputFromModifier && key.isModifier();
|
||||
|
Loading…
Reference in New Issue
Block a user