Don't recapitalize on shift while on symbol layout

Change-Id: Ibf2cdedf510c296561bb5eeb6ff18c3414d6d6f4
main
Jean Chalard 2013-04-16 12:33:41 +09:00
parent e259b9f57d
commit 1f52364630
1 changed files with 6 additions and 1 deletions

View File

@ -1392,7 +1392,12 @@ public final class LatinIME extends InputMethodService implements KeyboardAction
case Constants.CODE_SHIFT:
// Note: calling back to the keyboard on Shift key is handled in onPressKey()
// and onReleaseKey().
final Keyboard currentKeyboard = switcher.getKeyboard();
if (null != currentKeyboard && currentKeyboard.mId.isAlphabetKeyboard()) {
// TODO: Instead of checking for alphabetic keyboard here, separate keycodes for
// alphabetic shift and shift while in symbol layout.
handleRecapitalize();
}
break;
case Constants.CODE_SWITCH_ALPHA_SYMBOL:
// Note: calling back to the keyboard on symbol key is handled in onPressKey()