mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
am 16c85695: am 400ec7c5: am 0938fb69: Allow gesture from the delete key
* commit '16c85695ee293f3756d01a267ff0851b8a675c2d': Allow gesture from the delete key
This commit is contained in:
commit
e39df0b274
@ -937,9 +937,10 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
|
|||||||
if (!sShouldHandleGesture) {
|
if (!sShouldHandleGesture) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// A gesture should start only from a non-modifier key.
|
// A gesture should start only from a non-modifier key. Note that the gesture detection is
|
||||||
|
// disabled when the key is repeating.
|
||||||
mIsDetectingGesture = (mKeyboard != null) && mKeyboard.mId.isAlphabetKeyboard()
|
mIsDetectingGesture = (mKeyboard != null) && mKeyboard.mId.isAlphabetKeyboard()
|
||||||
&& key != null && !key.isModifier() && !key.isRepeatable();
|
&& key != null && !key.isModifier();
|
||||||
if (mIsDetectingGesture) {
|
if (mIsDetectingGesture) {
|
||||||
if (getActivePointerTrackerCount() == 1) {
|
if (getActivePointerTrackerCount() == 1) {
|
||||||
sGestureFirstDownTime = eventTime;
|
sGestureFirstDownTime = eventTime;
|
||||||
@ -1422,6 +1423,7 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
|
|||||||
if (key == null || key.getCode() != code) {
|
if (key == null || key.getCode() != code) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
mIsDetectingGesture = false;
|
||||||
final int nextRepeatCount = repeatCount + 1;
|
final int nextRepeatCount = repeatCount + 1;
|
||||||
mTimerProxy.startKeyRepeatTimer(this, nextRepeatCount, sParams.mKeyRepeatInterval);
|
mTimerProxy.startKeyRepeatTimer(this, nextRepeatCount, sParams.mKeyRepeatInterval);
|
||||||
callListenerOnPressAndCheckKeyboardLayoutChange(key, repeatCount);
|
callListenerOnPressAndCheckKeyboardLayoutChange(key, repeatCount);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user