From ca14c8bf34d6fa202628a2f328b604f2a89d0a3a Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Wed, 16 Nov 2011 21:40:12 -0800 Subject: Do not show key preview of settings and shortcut key Bug: 5560766 Change-Id: I580efaf4e33f7dfbaa591e2afae9c49547bf26fb --- java/src/com/android/inputmethod/keyboard/PointerTracker.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'java/src/com/android/inputmethod/keyboard/PointerTracker.java') diff --git a/java/src/com/android/inputmethod/keyboard/PointerTracker.java b/java/src/com/android/inputmethod/keyboard/PointerTracker.java index 38c419dc6..198e06aab 100644 --- a/java/src/com/android/inputmethod/keyboard/PointerTracker.java +++ b/java/src/com/android/inputmethod/keyboard/PointerTracker.java @@ -353,9 +353,12 @@ public class PointerTracker { // The modifier key, such as shift key, should not show its key preview. private static boolean isKeyPreviewRequired(Key key) { final int code = key.mCode; - if (isModifierCode(code) || code == Keyboard.CODE_DELETE - || code == Keyboard.CODE_ENTER || code == Keyboard.CODE_SPACE) + // TODO: Stop hard-coding these key codes here, and add a new key attribute of a key. + if (code == Keyboard.CODE_SPACE || code == Keyboard.CODE_ENTER + || code == Keyboard.CODE_DELETE || isModifierCode(code) + || code == Keyboard.CODE_SETTINGS || code == Keyboard.CODE_SHORTCUT) { return false; + } return true; } -- cgit v1.2.3