From 83e63ace2a1bd5b3c27d26d914456c2b0def17c5 Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Tue, 7 Sep 2010 15:37:59 +0900 Subject: Dismiss mini keyboard when finger is released outside mini keyboard Bug: 2978975 Change-Id: Ie634e8ae827fe093c5c673b75d85835050b03794 --- .../src/com/android/inputmethod/latin/LatinKeyboardBaseView.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java') diff --git a/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java b/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java index a0366c273..8f1ec6591 100644 --- a/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java +++ b/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java @@ -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. @@ -1005,6 +1010,10 @@ public class LatinKeyboardBaseView extends View implements PointerTracker.UIProx dismissPopupKeyboard(); } + public void onCancel() { + dismissPopupKeyboard(); + } + public void swipeLeft() { } public void swipeRight() { -- cgit v1.2.3-83-g751a