diff options
author | 2013-01-17 15:49:00 +0900 | |
---|---|---|
committer | 2013-01-18 20:15:18 +0900 | |
commit | 2fc4d422e72cf88bd4b0e30bce2a9815b7856b8e (patch) | |
tree | 6927082c782344acaa5cd2550651d677ab6d65fb /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | d5e869ced838454ede1d813d6a289fafc31b0665 (diff) | |
download | latinime-2fc4d422e72cf88bd4b0e30bce2a9815b7856b8e.tar.gz latinime-2fc4d422e72cf88bd4b0e30bce2a9815b7856b8e.tar.xz latinime-2fc4d422e72cf88bd4b0e30bce2a9815b7856b8e.zip |
Deactivate h/w keyboard when not an internal build.
The implementation is not really ready yet, so we want to
disable it for normal builds for now.
This goes together with Ic1edc6ed
Bug: 7987492
Change-Id: Id81f417e200c118f24424943823665f0b8bd6849
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 829c5e53d..d9e63da1b 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -2429,6 +2429,7 @@ public final class LatinIME extends InputMethodService implements KeyboardAction // Hooks for hardware keyboard @Override public boolean onKeyDown(final int keyCode, final KeyEvent event) { + if (!ProductionFlag.IS_HARDWARE_KEYBOARD_SUPPORTED) return super.onKeyDown(keyCode, event); // onHardwareKeyEvent, like onKeyDown returns true if it handled the event, false if // it doesn't know what to do with it and leave it to the application. For example, // hardware key events for adjusting the screen's brightness are passed as is. |