summaryrefslogtreecommitdiffstats
path: root/core/java/android/text
diff options
context:
space:
mode:
authorSteve Kondik <shade@chemlab.org>2010-11-13 03:58:40 -0500
committerSteve Kondik <shade@chemlab.org>2010-11-13 03:58:40 -0500
commitebb5e47760cc156fba6d6a93ad0dfaeb562f4771 (patch)
tree9edb0f5b6b85cd3891612b004defb0261179804b /core/java/android/text
parent691845d64f8a3964f66d4b32583a50f2861b1653 (diff)
downloadframeworks_base-ebb5e47760cc156fba6d6a93ad0dfaeb562f4771.zip
frameworks_base-ebb5e47760cc156fba6d6a93ad0dfaeb562f4771.tar.gz
frameworks_base-ebb5e47760cc156fba6d6a93ad0dfaeb562f4771.tar.bz2
input: Fix keymapping and handle www/com key.
The keymappings derived when setting up for Espresso were incorrect and causing problems on other keyboards like Vision. Corrected this, and also added handling for the www/com key on Vision. Change-Id: I4303c60498469a24f5ce2b4397b6cf822ac81f67
Diffstat (limited to 'core/java/android/text')
-rw-r--r--core/java/android/text/method/QwertyKeyListener.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/text/method/QwertyKeyListener.java b/core/java/android/text/method/QwertyKeyListener.java
index b3926f2..7a1b6aa 100644
--- a/core/java/android/text/method/QwertyKeyListener.java
+++ b/core/java/android/text/method/QwertyKeyListener.java
@@ -106,6 +106,12 @@ public class QwertyKeyListener extends BaseKeyListener {
return true;
}
+ if (i == KeyCharacterMap.DOT_WWW_INPUT || i == KeyCharacterMap.DOT_COM_INPUT) {
+ content.replace(selStart, selEnd, selStart == 0 ? "www." : ".com");
+ adjustMetaAfterKeypress(content);
+ return true;
+ }
+
if (i == KeyCharacterMap.HEX_INPUT) {
int start;