summaryrefslogtreecommitdiff
authorChaomin Zheng <chaomin.zheng@amlogic.com>2016-11-30 03:16:53 (GMT)
committer Chaomin Zheng <chaomin.zheng@amlogic.com>2016-11-30 03:16:53 (GMT)
commit5b044f490ddbedd34221aca1af451550dd7273e7 (patch)
tree6d7ba73dcfb671b633bd4e3ef1e5aedd1afbc215
parentc6b0b1840badcde2458119ad9ef4932aa9d8ba4f (diff)
downloadRemoteIME-5b044f490ddbedd34221aca1af451550dd7273e7.zip
RemoteIME-5b044f490ddbedd34221aca1af451550dd7273e7.tar.gz
RemoteIME-5b044f490ddbedd34221aca1af451550dd7273e7.tar.bz2
PD #135768:revert pd#72831 change RemoteIME.apk for left_shift_keycode modify
Change-Id: Id5419fd95e2e5b94009743001f3de56d6b9cee2f
Diffstat
-rw-r--r--src/com/droidlogic/inputmethod/remote/EnglishInputProcessor.java11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/com/droidlogic/inputmethod/remote/EnglishInputProcessor.java b/src/com/droidlogic/inputmethod/remote/EnglishInputProcessor.java
index 208faae..3a7e04e 100644
--- a/src/com/droidlogic/inputmethod/remote/EnglishInputProcessor.java
+++ b/src/com/droidlogic/inputmethod/remote/EnglishInputProcessor.java
@@ -25,16 +25,12 @@ import android.view.inputmethod.InputConnection;
public class EnglishInputProcessor {
private int mLastKeyCode = KeyEvent.KEYCODE_UNKNOWN;
- private boolean mShiftTag = false;
public boolean processKey ( InputConnection inputContext, KeyEvent event,
boolean upperCase, boolean realAction ) {
if ( null == inputContext || null == event ) { return false; }
int keyCode = event.getKeyCode();
CharSequence prefix = null;
prefix = inputContext.getTextBeforeCursor ( 2, 0 );
- if ( !realAction && keyCode == KeyEvent.KEYCODE_SHIFT_LEFT ) {
- mShiftTag = true;
- }
int keyChar;
keyChar = 0;
if ( keyCode >= KeyEvent.KEYCODE_A && keyCode <= KeyEvent.KEYCODE_Z ) {
@@ -57,9 +53,6 @@ public class EnglishInputProcessor {
} else if ( keyCode == KeyEvent.KEYCODE_AT ) {
keyChar = '@';
} else if ( keyCode == KeyEvent.KEYCODE_SLASH ) { keyChar = '/'; }
- if ( mShiftTag ) {
- keyChar = 0;
- }
if ( 0 == keyChar ) {
mLastKeyCode = keyCode;
String insert = null;
@@ -72,10 +65,6 @@ public class EnglishInputProcessor {
} else if ( KeyEvent.KEYCODE_SPACE == keyCode ) {
insert = " ";
} else {
- if ( realAction && keyCode == KeyEvent.KEYCODE_SHIFT_LEFT ) {
- mShiftTag = false;
- mLastKeyCode = KeyEvent.KEYCODE_UNKNOWN;
- }
return false;
}
if ( null != insert && realAction ) {