-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
Input disableTouchKeyboard #787
Comments
This would definitely be useful, as the touch keyboard on most devices obscures half the page, which when you're working with a datepicker anyway means that the form becomes rather unwieldy. Screenshot: https://f.cloud.github.com/assets/5637797/2217996/cafd628a-9a25-11e3-8887-5e12fb459335.png |
I'm not sure this is possible, outside of setting
|
I use it with jonthornton/jquery-timepicker (look at the related option). |
Also (I didn't see this option) maybe we should have an HTML5 date input fallback for browsers supporting it, but that's another issue |
Thanks for the example @Glideh, I've managed to include that in the scripts (adds the option https://f.cloud.github.com/assets/5637797/2308633/86b99b94-a2c1-11e3-9739-2e3a7c8b8719.png |
Good catch, thanks for the PR. (window.navigator.msMaxTouchPoints || 'ontouchstart' in document) Seems indeed to be the key |
I'm still having an issue with this, it still pops up the keyboard on both the Samsung s4 mini and Sony Xperia Z3 (android 4.4.2 and 4.4.4 respectively). Pulling my hair out on this one.. |
Confirmed re-occurring on my Galaxy S6 Edge too running Android 5.0.2 on Chrome and stock browser. I don't have an iPhone to test on though I'm afraid. Sorry chaps. Will try and find some time to dig back through the code and see what's different in newer rendering engines (maybe the |
Can you try this? I don't have access to Android devices, but this code snippet is from a rather great library, interact.js, so it should be actual. var supportsTouch = (('ontouchstart' in window) || window.DocumentTouch && document instanceof window.DocumentTouch); |
@razvanphp can you create a jsfiddle to test the piece of code? I have access to a fex android and ios devices so i'm able to test the snippet on different types of devices! |
+1
|
i dont think that i've just added a little trick to improve accessibility. (but of course this is not perfect)
tested on: |
@maximelebreton care to create a PR with a fix? |
In input mode, shouldn't we have a
disableTouchKeyboard
option to prevent mobile keyboard to pop out when the input is focused ?Setting it
readonly
seems not a good idea for me as it suggests we can't change the value.The text was updated successfully, but these errors were encountered: