Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aa6924e9 authored by Jean Chalard's avatar Jean Chalard Committed by Android Git Automerger
Browse files

am 78d65873: Merge "Don\'t recapitalize on shift while on symbol layout"

* commit '78d65873':
  Don't recapitalize on shift while on symbol layout
parents cca43825 78d65873
Loading
Loading
Loading
Loading
+6 −1
Original line number Original line Diff line number Diff line
@@ -1401,7 +1401,12 @@ public final class LatinIME extends InputMethodService implements KeyboardAction
        case Constants.CODE_SHIFT:
        case Constants.CODE_SHIFT:
            // Note: calling back to the keyboard on Shift key is handled in onPressKey()
            // Note: calling back to the keyboard on Shift key is handled in onPressKey()
            // and onReleaseKey().
            // 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();
                handleRecapitalize();
            }
            break;
            break;
        case Constants.CODE_SWITCH_ALPHA_SYMBOL:
        case Constants.CODE_SWITCH_ALPHA_SYMBOL:
            // Note: calling back to the keyboard on symbol key is handled in onPressKey()
            // Note: calling back to the keyboard on symbol key is handled in onPressKey()