-
-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(android): Allow external keyboard to work when OSK hidden #12381
base: master
Are you sure you want to change the base?
Conversation
User Test ResultsTest specification and instructions Test Artifacts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am uncertain about the ramifications of this change. This means the Runnable
runs on a new thread, not the UI thread, which seems to go against the discussion in the previously linked SO post. Can you elucidate?
I was just returning the call to how it had been for stable-15.0 keyman/android/KMEA/app/src/main/java/com/tavultesoft/kmea/KMKeyboard.java Lines 253 to 272 in 2dcc114
|
OK, so this was changed because of reported errors -- see #7612 (comment):
I would like to understand why this is causing the event handlers not to attach -- is it because there is no UI thread when the keyboard is hidden? |
Test ResultsI tested this issue with the attached "Keyman 18.0.108-alpha-test-12381" build on the Android 14 mobile (physical device and keyboard connected with USB cable). I am sharing my observation. TEST_KEYBOARD (Passed):
|
This reversion may appear to work but it is not thread safe -- which is probably why it was changed in the first place. Calling
So we need to find a better way to solve this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See discussion
…/android/external-keyboard # Keyman Conventional Commit suggestions: # # - Link to a Sentry issue with git trailer: # Fixes: _MODULE_-_ID_ # - Give credit to co-authors: # Co-authored-by: _Name_ <_email_> # - Use imperative, present tense ('attach' not 'attaches', 'attached' etc) # - Don't include a period at the end of the title # - Always include a blank line before trailers # - More: https://github.com/keymanapp/keyman/wiki/Pull-Request-and-Commit-workflow-notes
Fixes #12366
Reverts part of #7612 which had changed where the Javascript handler gets attached
User Testing
Setup - Install the PR build of Keyman for Android on a physical device. Also pair an external keyboard (USB/bluetooth) to the device
à
.à