summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/ExtendedEditText.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/launcher3/ExtendedEditText.java')
-rw-r--r--src/com/android/launcher3/ExtendedEditText.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/android/launcher3/ExtendedEditText.java b/src/com/android/launcher3/ExtendedEditText.java
index c06f727a5..d05673ccc 100644
--- a/src/com/android/launcher3/ExtendedEditText.java
+++ b/src/com/android/launcher3/ExtendedEditText.java
@@ -99,4 +99,12 @@ public class ExtendedEditText extends EditText {
((InputMethodManager) getContext().getSystemService(Context.INPUT_METHOD_SERVICE))
.showSoftInput(this, InputMethodManager.SHOW_IMPLICIT);
}
+
+ public void dispatchBackKey() {
+ ((InputMethodManager) getContext().getSystemService(Context.INPUT_METHOD_SERVICE))
+ .hideSoftInputFromWindow(getWindowToken(), 0);
+ if (mBackKeyListener != null) {
+ mBackKeyListener.onBackKey();
+ }
+ }
}