mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-14 22:12:46 +00:00
parent
548bf64c9d
commit
cd5ac492be
1 changed files with 1 additions and 11 deletions
|
@ -1047,17 +1047,7 @@ public final class PointerTracker implements PointerTrackerQueue.Element,
|
||||||
final boolean isInSlidingKeyInput = mIsInSlidingKeyInput;
|
final boolean isInSlidingKeyInput = mIsInSlidingKeyInput;
|
||||||
resetKeySelectionByDraggingFinger();
|
resetKeySelectionByDraggingFinger();
|
||||||
mIsDetectingGesture = false;
|
mIsDetectingGesture = false;
|
||||||
final Key currentKey;
|
final Key currentKey = mCurrentKey;
|
||||||
if (mKeyboardLayoutHasBeenChanged && mKeyboard.mId.isAlphabetKeyboard()) {
|
|
||||||
// this is called when keyboard was changed shortly before releasing the key
|
|
||||||
// e.g. when the input field is cleared and shift is set to auto right before pressing the key,
|
|
||||||
// then we want to get the current key, and not the key from the old keyboard (bug report in #994)
|
|
||||||
// the check for alphabet keyboard is to prevent this workaround from breaking LongPressSymbolsForNumpad (#1268)
|
|
||||||
currentKey = mKeyDetector.detectHitKey(x, y);
|
|
||||||
setReleasedKeyGraphics(mCurrentKey, true); // need to call this, otherwise preview popup will stay open
|
|
||||||
} else {
|
|
||||||
currentKey = mCurrentKey;
|
|
||||||
}
|
|
||||||
mCurrentKey = null;
|
mCurrentKey = null;
|
||||||
final int currentRepeatingKeyCode = mCurrentRepeatingKeyCode;
|
final int currentRepeatingKeyCode = mCurrentRepeatingKeyCode;
|
||||||
mCurrentRepeatingKeyCode = Constants.NOT_A_CODE;
|
mCurrentRepeatingKeyCode = Constants.NOT_A_CODE;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue