summaryrefslogtreecommitdiffstats
path: root/chips/src/com/android
diff options
context:
space:
mode:
authorScott Kennedy <skennedy@google.com>2013-02-01 10:53:33 -0800
committerScott Kennedy <skennedy@google.com>2013-02-01 10:53:33 -0800
commite032f315b6f95896ff471e92a20a42159d53fa6a (patch)
tree2d25de5b22e112dd7291243646811daa15e0f618 /chips/src/com/android
parent31f3038a4d5cde24c1f61653af682bd6cc033471 (diff)
downloadandroid_frameworks_ex-e032f315b6f95896ff471e92a20a42159d53fa6a.tar.gz
android_frameworks_ex-e032f315b6f95896ff471e92a20a42159d53fa6a.tar.bz2
android_frameworks_ex-e032f315b6f95896ff471e92a20a42159d53fa6a.zip
Hitting enter on a physical keyboard should auto-complete
We need to treat KEYCODE_ENTER the same way as KEYCODE_DPAD_CENTER. Bug: 8077506 Change-Id: Ib129068f851c3927bd572edb0ae0edfb6c422ceb
Diffstat (limited to 'chips/src/com/android')
-rw-r--r--chips/src/com/android/ex/chips/RecipientEditTextView.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/chips/src/com/android/ex/chips/RecipientEditTextView.java b/chips/src/com/android/ex/chips/RecipientEditTextView.java
index 462d456..cfd6b25 100644
--- a/chips/src/com/android/ex/chips/RecipientEditTextView.java
+++ b/chips/src/com/android/ex/chips/RecipientEditTextView.java
@@ -1077,6 +1077,7 @@ public class RecipientEditTextView extends MultiAutoCompleteTextView implements
@Override
public boolean onKeyUp(int keyCode, KeyEvent event) {
switch (keyCode) {
+ case KeyEvent.KEYCODE_ENTER:
case KeyEvent.KEYCODE_DPAD_CENTER:
if (event.hasNoModifiers()) {
if (commitDefault()) {