am 5619d765: Shift/Symbol/Smiley will not disable settings/microphone keys

* commit '5619d7658459d13723b6d7ad8969b249adf9e717':
  Shift/Symbol/Smiley will not disable settings/microphone keys
This commit is contained in:
Tadashi G. Takaoka 2011-11-18 12:56:53 -08:00 committed by Android Git Automerger
commit 191d42f739

View file

@ -1295,13 +1295,17 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
break; break;
case Keyboard.CODE_SHIFT: case Keyboard.CODE_SHIFT:
// Shift key is handled in onPress() when device has distinct multi-touch panel. // Shift key is handled in onPress() when device has distinct multi-touch panel.
if (!distinctMultiTouch) if (!distinctMultiTouch) {
switcher.toggleShift(); switcher.toggleShift();
}
shouldStartKeyTypedTimer = false;
break; break;
case Keyboard.CODE_SWITCH_ALPHA_SYMBOL: case Keyboard.CODE_SWITCH_ALPHA_SYMBOL:
// Symbol key is handled in onPress() when device has distinct multi-touch panel. // Symbol key is handled in onPress() when device has distinct multi-touch panel.
if (!distinctMultiTouch) if (!distinctMultiTouch) {
switcher.changeKeyboardMode(); switcher.changeKeyboardMode();
}
shouldStartKeyTypedTimer = false;
break; break;
case Keyboard.CODE_CANCEL: case Keyboard.CODE_CANCEL:
if (!isShowingOptionDialog()) { if (!isShowingOptionDialog()) {
@ -1370,6 +1374,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
mKeyboardSwitcher.onKey(Keyboard.CODE_DUMMY); mKeyboardSwitcher.onKey(Keyboard.CODE_DUMMY);
mJustAddedMagicSpace = false; mJustAddedMagicSpace = false;
mEnteredText = text; mEnteredText = text;
mHandler.startKeyTypedTimer();
} }
@Override @Override