Loading java/src/com/android/inputmethod/latin/LatinIME.java +4 −0 Original line number Diff line number Diff line Loading @@ -1213,6 +1213,10 @@ public class LatinIME extends InputMethodService mEnteredText = text; } public void onCancel() { // User released a finger outside any key } private void handleBackspace() { if (VOICE_INSTALLED && mVoiceInputHighlighted) { mVoiceInput.incrementTextModificationDeleteCount( Loading java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java +9 −0 Original line number Diff line number Diff line Loading @@ -123,6 +123,11 @@ public class LatinKeyboardBaseView extends View implements PointerTracker.UIProx */ void onText(CharSequence text); /** * Called when user released a finger outside any key. */ void onCancel(); /** * Called when the user quickly moves the finger from right to * left. Loading Loading @@ -1005,6 +1010,10 @@ public class LatinKeyboardBaseView extends View implements PointerTracker.UIProx dismissPopupKeyboard(); } public void onCancel() { dismissPopupKeyboard(); } public void swipeLeft() { } public void swipeRight() { Loading java/src/com/android/inputmethod/latin/PointerTracker.java +7 −3 Original line number Diff line number Diff line Loading @@ -389,9 +389,13 @@ public class PointerTracker { } private void detectAndSendKey(int index, int x, int y, long eventTime) { if (isValidKeyIndex(index)) { final Key key = mKeys[index]; OnKeyboardActionListener listener = mListener; final OnKeyboardActionListener listener = mListener; final Key key = getKey(index); if (key == null) { if (listener != null) listener.onCancel(); } else { if (key.text != null) { if (listener != null) { listener.onText(key.text); Loading Loading
java/src/com/android/inputmethod/latin/LatinIME.java +4 −0 Original line number Diff line number Diff line Loading @@ -1213,6 +1213,10 @@ public class LatinIME extends InputMethodService mEnteredText = text; } public void onCancel() { // User released a finger outside any key } private void handleBackspace() { if (VOICE_INSTALLED && mVoiceInputHighlighted) { mVoiceInput.incrementTextModificationDeleteCount( Loading
java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java +9 −0 Original line number Diff line number Diff line Loading @@ -123,6 +123,11 @@ public class LatinKeyboardBaseView extends View implements PointerTracker.UIProx */ void onText(CharSequence text); /** * Called when user released a finger outside any key. */ void onCancel(); /** * Called when the user quickly moves the finger from right to * left. Loading Loading @@ -1005,6 +1010,10 @@ public class LatinKeyboardBaseView extends View implements PointerTracker.UIProx dismissPopupKeyboard(); } public void onCancel() { dismissPopupKeyboard(); } public void swipeLeft() { } public void swipeRight() { Loading
java/src/com/android/inputmethod/latin/PointerTracker.java +7 −3 Original line number Diff line number Diff line Loading @@ -389,9 +389,13 @@ public class PointerTracker { } private void detectAndSendKey(int index, int x, int y, long eventTime) { if (isValidKeyIndex(index)) { final Key key = mKeys[index]; OnKeyboardActionListener listener = mListener; final OnKeyboardActionListener listener = mListener; final Key key = getKey(index); if (key == null) { if (listener != null) listener.onCancel(); } else { if (key.text != null) { if (listener != null) { listener.onText(key.text); Loading