mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Disable gesture input detection when more keys keyboard is showing
Bug: 6852441
This commit is contained in:
parent
b8bd45a22a
commit
cc3500b0c8
@ -671,7 +671,7 @@ public class PointerTracker {
|
|||||||
if (queue != null && queue.size() == 1) {
|
if (queue != null && queue.size() == 1) {
|
||||||
mIsPossibleGesture = false;
|
mIsPossibleGesture = false;
|
||||||
// A gesture should start only from the letter key.
|
// A gesture should start only from the letter key.
|
||||||
if (sIsGestureEnabled && mIsAlphabetKeyboard && key != null
|
if (sIsGestureEnabled && mIsAlphabetKeyboard && !mIsShowingMoreKeysPanel && key != null
|
||||||
&& Keyboard.isLetterCode(key.mCode)) {
|
&& Keyboard.isLetterCode(key.mCode)) {
|
||||||
mIsPossibleGesture = true;
|
mIsPossibleGesture = true;
|
||||||
// TODO: pointer times should be relative to first down even in entire batch input
|
// TODO: pointer times should be relative to first down even in entire batch input
|
||||||
@ -915,8 +915,8 @@ public class PointerTracker {
|
|||||||
public void onShowMoreKeysPanel(int x, int y, KeyEventHandler handler) {
|
public void onShowMoreKeysPanel(int x, int y, KeyEventHandler handler) {
|
||||||
abortBatchInput();
|
abortBatchInput();
|
||||||
onLongPressed();
|
onLongPressed();
|
||||||
onDownEvent(x, y, SystemClock.uptimeMillis(), handler);
|
|
||||||
mIsShowingMoreKeysPanel = true;
|
mIsShowingMoreKeysPanel = true;
|
||||||
|
onDownEvent(x, y, SystemClock.uptimeMillis(), handler);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onLongPressed() {
|
public void onLongPressed() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user