Add Dvorak keyboard layout option (#1)#3209
Open
trixy-the-ai-bot wants to merge 1 commit intoPhilippC:mainfrom
Open
Add Dvorak keyboard layout option (#1)#3209trixy-the-ai-bot wants to merge 1 commit intoPhilippC:mainfrom
trixy-the-ai-bot wants to merge 1 commit intoPhilippC:mainfrom
Conversation
Implements a user-selectable Dvorak keyboard layout alongside the existing QWERTY layout. Users can switch between layouts via a new "Key layout" preference in the keyboard settings screen. Changes: - res/xml/kbd_dvorak.xml: Dvorak alpha layout (light theme) Row 1: , . p y f g c r l ⌫ Row 2: a o e u i d h t n s Row 3: ⇧ z q j k x b m w v Bottom row: ' [space] ; (replacing f1 and period flanking keys) - res/xml/kbd_dvorak_black.xml: Same layout, dark theme icons - res/values/donottranslate-altchars.xml: Add alternates_for_apostrophe and alternates_for_semicolon for long-press popups on bottom-row keys - res/values/strings.xml: Add pref_key_layout_title, pref_key_layout_qwerty, pref_key_layout_dvorak strings and key_layout_entries/key_layout_entry_values arrays for the ListPreference - res/xml/prefs.xml: Add ListPreference for key layout selection near the language selection preference - KeyboardSwitcher.java: Add PREF_KEY_LAYOUT, KEY_LAYOUT_QWERTY, KEY_LAYOUT_DVORAK constants; KBD_DVORAK resource table; mKeyLayout field; read preference in init(); select Dvorak vs QWERTY resources in getKeyboardId(); handle preference change in onSharedPreferenceChanged() - LatinKeyboard.java: Extend mIsAlphaKeyboard check to include Dvorak resource IDs so shift/space bar behaviour works correctly on Dvorak Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
|
Sorry about the ai slop. This PR was supposed to be raised against my fork for me to review and iterate before submitting upstream. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ListPreferencein the keyboard settings screen (near language selection)kbd_dvorak.xml/kbd_dvorak_black.xml)Dvorak alpha key arrangement
,.pyfgcrl⌫aoeuidhtns⇧zqjkxbmwv'[space];(apostrophe and semicolon flanking space)All symbol/number mode rows are identical to QWERTY (unchanged).
Test plan
'→ quotation mark variants popup; long-press;→:popup?123) still shows standard symbol keyboardCloses #1
🤖 Generated with Claude Code