mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Allow to start gesture from a non-letter key except from a modifier key
Bug: 7303982 Change-Id: Id54965c1d7b2b760ac2a76a0fc509b46948e75e6
This commit is contained in:
parent
60f6120e2b
commit
4df6549c1a
@ -757,9 +757,9 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
|
||||
if (!sShouldHandleGesture) {
|
||||
return;
|
||||
}
|
||||
// A gesture should start only from the letter key.
|
||||
// A gesture should start only from a non-modifier key.
|
||||
mIsDetectingGesture = (mKeyboard != null) && mKeyboard.mId.isAlphabetKeyboard()
|
||||
&& !mIsShowingMoreKeysPanel && key != null && Keyboard.isLetterCode(key.mCode);
|
||||
&& !mIsShowingMoreKeysPanel && key != null && !key.isModifier();
|
||||
if (mIsDetectingGesture) {
|
||||
if (getActivePointerTrackerCount() == 1) {
|
||||
sGestureFirstDownTime = eventTime;
|
||||
|
Loading…
Reference in New Issue
Block a user