This change will display the key board preview instantaneously when
the key is pressed. Dismissing the key preview will be delayed
slightly after the key is released, as we do now.
Because in multi touch mode, we should instantaneously change keyboard
layout when modifier key, such as shit and symbol, is pressed.
Change-Id: I49348d563ca0f40f5a0a236bdcd0bb07eedd599b
Long-press on shift and symbol keys will conflict with press-and-hold
these keys and press normal key (a.k.a. multi touch support).
Bug: 2910379
Change-Id: I27007b55a30a3699bf63fd8f64d58c4b23d97d9f
This change eliminates the need of extra MotionEvent allocation. Also
this will lead to the easy way to handle multi touch events.
Bug: 2910379
Change-Id: Ibcfcba554b732c13105f91877b41b553ee6928ba
This change moves SwipeTracker out from LatinKeyboardBaseView. Also
this introduces EventBuffer class for swipe tracking buffer.
Bug: 2910379
Change-Id: I48ff714226a248ca063cbaf9755cf45e458f7402
GestureDetector listener's onFling method will not call detectAndSendKey
anymore.
Make gesture detector be ignoring multitouch. Refactoring
GestureDetector out of LatinKeyboardBaseView class change will follow.
Bug: 2910379
Change-Id: I0b2a9c4cf7d432f89f9085f3c2bdf3a3757a8903
This change encapsulates mInKeyRepeat (former mRepeatKeyIndex) into
UIHandler class. Also this eliminates mCurrentKey and mLastTapTime
dependency from repeatKey method.
Bug: 2910379
Change-Id: I9351a558be2ebc04de4ebb0d323af4be33bd470c
This change simplifies onModifierTouchEvent to focus on handling
motion event related to a key event.
Other refactoring will follow in order to support multi touch.
Bug: 2910379
Change-Id: I036be64168d951a535600a7910b36bc109f88490
Merge commit '6b6ae29b61acf1f8317f5dd261d5c74ec51b155e'
* commit '6b6ae29b61acf1f8317f5dd261d5c74ec51b155e':
Fix LatinIME crashing due to crash in Contacts DB
Merge commit '3ecb4813f1f77ce9330b08a1a2ab83d26df05e51'
* commit '3ecb4813f1f77ce9330b08a1a2ab83d26df05e51':
Fix an NPE found in KeyboardSwitcher.isAlphabetMode()
Move setShifted and setShifLocked methods to KeyboardSwitcher, then
delegate to LatinKeyboardView.
Bug: 2910379
Change-Id: I5dba70ec0dfc7a1ed67f1e05d54a2bd92252ed24
Also, continue to show the corrections when user keeps replacing the word repeatedly
with different corrections from the suggestion strip. There were problems with
tapping suggestions quickly or tapping the same suggestion more than once (same length).
Also fixes Bug: 2852891 - Text suggestion appears incorrectly when selecting text that's
not a whole word.
Changed the TextEntryState states to an enum type instead of int. Needed it to show the
states for debugging purposes.
There are some traditional differences between Norwegian and Swedish
keyboard layouts -- for instance, few Norwegians would search for ü
on the y key, but it is so on the Swedish keyboard. Correct the most
obvious differences.
Change-Id: Iab53fa51ff7faa2022b10b551e47060a6f2c5652
from com.google.android.inputmethod.latin to com.android.inputmethod.latin
Related change: https://android-git.corp.google.com/g/60862
bug: 2786392
Change-Id: Ib7c6cfe61db19ef50c401a01497eef5f1f5e239e