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

Commit 946702c3 authored by LiZhihong's avatar LiZhihong Committed by Josep del Río
Browse files

Do not intercept LANGUAGE_SWITCH in the framework layer



Currently, the LANGUAGE_SWITCH key code will be used to switch the
keyboard layout in PhoneWindowManager; however, this prevents IMEs like
GBoard from switching the language, which is the intended behavior.

Test: manual
Bug: 240865722
Signed-off-by: default avatarLiZhihong <lizh52@lenovo.corp-partner.google.com>
Change-Id: If5fcf65522a0a08f89e5594b6fc9576c2a77d0cb
parent ce1c0862
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -2944,8 +2944,6 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                if ((metaState & KeyEvent.META_META_MASK) == 0) {
                    return key_not_consumed;
                }
                // Share the same behavior with KEYCODE_LANGUAGE_SWITCH.
            case KeyEvent.KEYCODE_LANGUAGE_SWITCH:
                if (down && repeatCount == 0) {
                    int direction = (metaState & KeyEvent.META_SHIFT_MASK) != 0 ? -1 : 1;
                    mWindowManagerFuncs.switchKeyboardLayout(event.getDeviceId(), direction);