aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2009-05-06 17:38:00 -0700
committerAmith Yamasani <yamasani@google.com>2009-05-06 17:38:00 -0700
commit230cd6f7f27300e2688b5e5a22a5361f446b80e7 (patch)
tree91e09721fa4d378e2c3444dcd8f2430884b58091 /src
parentbd9fdede8f5918cbc671ee257ca6f0f1548e4572 (diff)
downloadlatinime-230cd6f7f27300e2688b5e5a22a5361f446b80e7.tar.gz
latinime-230cd6f7f27300e2688b5e5a22a5361f446b80e7.tar.xz
latinime-230cd6f7f27300e2688b5e5a22a5361f446b80e7.zip
Fix Bug #1833943 - CapsLock using long-press doesn't update keys.
Use new API in KeyboardView to invalidate all keys on long-press of shift key.
Diffstat (limited to 'src')
-rw-r--r--src/com/android/inputmethod/latin/LatinKeyboardView.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/android/inputmethod/latin/LatinKeyboardView.java b/src/com/android/inputmethod/latin/LatinKeyboardView.java
index 363dcd0b0..d9ff0aa8c 100644
--- a/src/com/android/inputmethod/latin/LatinKeyboardView.java
+++ b/src/com/android/inputmethod/latin/LatinKeyboardView.java
@@ -33,7 +33,7 @@ public class LatinKeyboardView extends KeyboardView {
static final int KEYCODE_OPTIONS = -100;
static final int KEYCODE_SHIFT_LONGPRESS = -101;
-
+
private Keyboard mPhoneKeyboard;
public LatinKeyboardView(Context context, AttributeSet attrs) {
@@ -43,11 +43,11 @@ public class LatinKeyboardView extends KeyboardView {
public LatinKeyboardView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
}
-
+
public void setPhoneKeyboard(Keyboard phoneKeyboard) {
mPhoneKeyboard = phoneKeyboard;
}
-
+
@Override
protected boolean onLongPress(Key key) {
if (key.codes[0] == Keyboard.KEYCODE_MODE_CHANGE) {
@@ -55,7 +55,7 @@ public class LatinKeyboardView extends KeyboardView {
return true;
} else if (key.codes[0] == Keyboard.KEYCODE_SHIFT) {
getOnKeyboardActionListener().onKey(KEYCODE_SHIFT_LONGPRESS, null);
- invalidate();
+ invalidateAllKeys();
return true;
} else if (key.codes[0] == '0' && getKeyboard() == mPhoneKeyboard) {
// Long pressing on 0 in phone number keypad gives you a '+'.