diff options
author | 2013-02-22 16:16:01 -0800 | |
---|---|---|
committer | 2013-02-22 16:16:01 -0800 | |
commit | df32362794c225b335c413552401fa03113a07e6 (patch) | |
tree | 46c7abfb2c260bd1518918b218440cbac87b3ccd /java/src/com/android/inputmethod/event/HardwareKeyboardEventDecoder.java | |
parent | a3e561dcb65d5ce9aab486b1aacdf8e747398148 (diff) | |
parent | 8f794c72db07786c866e357c7853c339882b45ef (diff) | |
download | latinime-df32362794c225b335c413552401fa03113a07e6.tar.gz latinime-df32362794c225b335c413552401fa03113a07e6.tar.xz latinime-df32362794c225b335c413552401fa03113a07e6.zip |
am 8f794c72: Merge "Fix how the Enter action is decided"
* commit '8f794c72db07786c866e357c7853c339882b45ef':
Fix how the Enter action is decided
Diffstat (limited to 'java/src/com/android/inputmethod/event/HardwareKeyboardEventDecoder.java')
-rw-r--r-- | java/src/com/android/inputmethod/event/HardwareKeyboardEventDecoder.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/event/HardwareKeyboardEventDecoder.java b/java/src/com/android/inputmethod/event/HardwareKeyboardEventDecoder.java index a2463c20c..720d07433 100644 --- a/java/src/com/android/inputmethod/event/HardwareKeyboardEventDecoder.java +++ b/java/src/com/android/inputmethod/event/HardwareKeyboardEventDecoder.java @@ -58,11 +58,11 @@ public class HardwareKeyboardEventDecoder implements HardwareEventDecoder { } if (KeyEvent.KEYCODE_ENTER == keyCode) { // The Enter key. If the Shift key is not being pressed, this should send a - // CODE_ACTION_ENTER to trigger the action if any, or a carriage return - // otherwise. If the Shift key is depressed, this should send a - // CODE_SHIFT_ENTER and let Latin IME decide what to do with it. + // CODE_ENTER to trigger the action if any, or a carriage return otherwise. If the + // Shift key is being pressed, this should send a CODE_SHIFT_ENTER and let + // Latin IME decide what to do with it. return Event.createCommittableEvent(keyEvent.isShiftPressed() - ? Constants.CODE_SHIFT_ENTER : Constants.CODE_ACTION_ENTER, + ? Constants.CODE_SHIFT_ENTER : Constants.CODE_ENTER, null /* next */); } // If not Enter, then we have a committable character. This should be committed |