Skip to content
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

Mobile improvements #587

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

zr0w1
Copy link
Contributor

@zr0w1 zr0w1 commented Dec 7, 2024

Note: these changes have only been tested on Safari and Chrome on iOS

To prevent the keyboard from popping up by default I use the inputmode attribute which signals to the browser which virtual keyboard to display (eg: inputmode=numeric may show the 'keypad' instead of a typical keyboard). Setting this to none tells the browser not to display any keyboard. In this case, mobile users will need to tap input fields to show a keyboard. Since desktop users use hardware keyboards they are unaffected. Closes #424

@11k
Copy link
Contributor

11k commented Dec 23, 2024

I did some research and suspect this won't work properly on Android. According to this article, Chrome for Android won't get a keyboard at all. The article is a little dated, admittedly.

Generally speaking, the docs are clear this is meant to be used only when the app renders its own keyboard. Even though it might have the desired effect, I'm concerned this approach will have issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

On-screen keyboard popping up unnecessarily results in a poor user experience
2 participants