fix(android): Show system OSK when physical keyboard connected on Android API 36 👁️#14538
Merged
darcywong00 merged 2 commits intomasterfrom Aug 20, 2025
Merged
Conversation
jahorton
approved these changes
Aug 18, 2025
ermshiperete
approved these changes
Aug 18, 2025
Contributor
Test ResultsBefore testing:
|
Collaborator
|
Changes in this pull request will be available for download in Keyman version 19.0.103-alpha |
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.
Addresses part of #14533
Android emulator on API 36 (Android 16.0 Baklava) has a new behavior where the system On-Screen Keyboard doesn't appear because the physical keyboard of the host computer is connected. The Gboard keyboard has a preference toggle to "Show on-screen keyboard while using physical keyboard" (default false)
This PR overrides the SystemKeyboard handler to display the OSK while using physical keyboard (on the Keyman, Sample2, and FirstVoices apps)
We'll probably 🍒 -pick this PR to stable-18.0 since Android API 36 will roll out to more devices over the year.
A separate follow-on PR will address the long-term plan of having a Keyman preference toggle to show on-screen keyboard while using physical keyboard (default false)
User Testing
Setup - Setup Android emulator for API 36. Also set Gboard to display on-screen keyboard:
device Settings --> Keyboard --> On-screen keyboard --> click Gboard --> Physical keyboard --> Show on-screen keyboard to "on"
back to Gboard settings --> write in text fields --> Use stylus to write in text fields , set to "off"
For each test, install the corresponding PR build