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

Commit e1210c32 authored by Alexandre Dumont's avatar Alexandre Dumont
Browse files

Prevent Sym key from showing the IME picker

By default InputMethodManager will popup an IME picker when pressing
the Sym key.

This can be disabled by setting config_symKeyShowsImePicker to false in the
overlay (so the Sym key will show the symbol windows selector for ex.)

Change-Id: I27f5210ddf1aee5b19389a12dc9e21100dbefa0b
parent f0b7008a
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
@@ -1482,6 +1482,7 @@ public final class InputMethodManager {
                return;
            }
    
            if (context.getResources().getBoolean(com.android.internal.R.bool.config_symKeyShowsImePicker)) {
                if (key.getAction() == KeyEvent.ACTION_DOWN
                        && key.getKeyCode() == KeyEvent.KEYCODE_SYM) {
                    showInputMethodPicker();
@@ -1491,6 +1492,7 @@ public final class InputMethodManager {
                    }
                    return;
                }
            }
            try {
                if (DEBUG) Log.v(TAG, "DISPATCH KEY: " + mCurMethod);
                mCurMethod.dispatchKeyEvent(seq, key, callback);
+2 −0
Original line number Diff line number Diff line
@@ -790,4 +790,6 @@
    <!-- Asus dock compatibility disabled by default -->
    <bool name="config_hasDockBattery">false</bool>

    <!-- True if the Sym key should open the InputMethodPicker (default) -->
    <bool name="config_symKeyShowsImePicker">true</bool>
</resources>