-
-
Notifications
You must be signed in to change notification settings - Fork 111
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(developer): don't use osk-always-visible on touch devices #9917
fix(developer): don't use osk-always-visible on touch devices #9917
Conversation
Fixes #9845. It seems that the logic for `osk-always-visible` is not quite right on touch devices -- the OSK disappears on blur but remains touchable -- so presses in the OSK region emit key events. For Keyman Developer Server, the simple workaround is to only use `<body class="osk-always-visible">` when on desktop devices. We should review the logic for `osk-always-visible` in KeymanWeb, so that this issue does not arise on touch devices. This patch addresses the issue in Keyman Developer Server, and matches the behaviour we want on touch devices in any case, as we don't really want the OSK visible when blurred, unlike on desktop.
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.
lgtm
@bharanidharanj can you retest please? I don't think the mobile emulation mode took effect. For mobile emulation in Chrome, you need to press F12 to activate the Developer Tools, then click the Then, press F5 to reload the page so mobile mode takes full effect. And then you can do the test 😁 @keymanapp-test-bot retest |
@bharanidharanj I think you might have missed the step on using mobile emulation mode. But I just retested that here so I think we are good to go. |
Changes in this pull request will be available for download in Keyman version 17.0.205-alpha |
@mcdurdin Oops! I have done this test on the Mozilla Firefox browser. However, I retested this in Chrome browser and it seems to be working as expected. Thanks for your guidance. |
Fixes #9845.
It seems that the logic for
osk-always-visible
is not quite right on touch devices -- the OSK disappears on blur but remains touchable -- so presses in the OSK region emit key events. For Keyman Developer Server, the simple workaround is to only use<body class="osk-always-visible">
when on desktop devices.We should review the logic for
osk-always-visible
in KeymanWeb, so that this issue does not arise on touch devices. This patch addresses the issue in Keyman Developer Server, and matches the behaviour we want on touch devices in any case, as we don't really want the OSK visible when blurred, unlike on desktop.User Testing