Add toolbar option to toggle Split Keyboard Setting - Enhancement #1218 (#1263)

---------

Co-authored-by: Josh <joshtidal24@gmail.com>
Co-authored-by: Helium314 <helium314@mailbox.org>
This commit is contained in:
PurplePickleMonster 2025-02-09 05:32:16 -05:00 committed by GitHub
parent c0b3e76741
commit 679754bb2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 74 additions and 17 deletions

View file

@ -773,6 +773,9 @@ public final class InputLogic {
case KeyCode.REDO:
sendDownUpKeyEventWithMetaState(KeyEvent.KEYCODE_Z, KeyEvent.META_CTRL_ON | KeyEvent.META_SHIFT_ON);
break;
case KeyCode.SPLIT_LAYOUT:
KeyboardSwitcher.getInstance().toggleSplitKeyboardMode();
break;
case KeyCode.VOICE_INPUT:
// switching to shortcut IME, shift state, keyboard,... is handled by LatinIME,
// {@link KeyboardSwitcher#onEvent(Event)}, or {@link #onPressKey(int,int,boolean)} and {@link #onReleaseKey(int,boolean)}.