diff options
author | Steve Kondik <shade@chemlab.org> | 2010-11-13 03:58:40 -0500 |
---|---|---|
committer | Steve Kondik <shade@chemlab.org> | 2010-11-13 03:58:40 -0500 |
commit | ebb5e47760cc156fba6d6a93ad0dfaeb562f4771 (patch) | |
tree | 9edb0f5b6b85cd3891612b004defb0261179804b /core/java/android/text | |
parent | 691845d64f8a3964f66d4b32583a50f2861b1653 (diff) | |
download | frameworks_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.java | 6 |
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; |