iOS HTML5 app uses bluetooth keyboard input. How?
So after doing some exhaustive searching, I found an online app that relies on the iOS bluetooth keyboard input, without ever showing the keyboard on screen. How is this possible?
This link has info but I don't see how this can be done...
This link seems to discuss catching the keyboard input.
The program in question is some kiddy typing program and the input was just lettering, but even that seems huge. If I could do something similar to that, I could finally start a project I've had in my head for ages. Is there any way we can catch the keyboard input, even if it's just text/letters?
iOS HTML5 app uses bluetooth keyboard input. How?
Wow, these key events could be just what I needed all along. I'll do some playing with it. I've never implemented java into a fusion app...or even a website. Looks like I've got some learning ahead of me.
Thanks for the continued input, guys.
iOS HTML5 app uses bluetooth keyboard input. How?
Here's an awesome example page:
http://quirksmode.org/dom/events/tests/keys.html#
And documentation:
http://quirksmode.org/dom/events/keys.html#
Using that page with an iPad and a Bluetooth keyboard, I see the key presses are registered without being in an edit field. I don't see, however, where the key code is being intercepted so I know WHICH key is being pressed. If I could get characters and shift, I'd be set!
iOS HTML5 app uses bluetooth keyboard input. How?
This is all very helpful and appreciated!
One difference I've noticed between your examples and that test page is that the test page intercepts key presses outside of a text input field. Your examples show the key character, which I certainly need, but only if I'm in the above text field. Outside of the text edit presses aren't registering. I think it's the "on window" event the article mentions?This is on iOS Safari.
Also...I didn't know java and JavaScript were two separate things! I'm a noob.
iOS HTML5 app uses bluetooth keyboard input. How?
More interesting examples. This one seems to work well. The improvement I'd make is having the "click here" area not require the click/tap.
I'm also finding people prefer the which.key event because it's cross browser compatible.
So close to a solution...
http://codepen.io/chriscoyier/pen/mPgoYJ
iOS HTML5 app uses bluetooth keyboard input. How?