Ah, sorry! I understand now.
-
-
Replying to @mwichary @Miller_Geek
I only listen to keydown for Enter, not on mobile. For letters etc., I listen to keydown on desktop, and input on mobile.
1 reply 0 retweets 0 likes -
Replying to @mwichary @Miller_Geek
So it really can’t work in the current setup. I think I’d need to add keydown to the mirror input field to intercept Enter.
2 replies 0 retweets 0 likes -
-
Replying to @mwichary
That works much better. The input field itself is still a single line, but the segmented type appears on multiple lines
1 reply 0 retweets 0 likes -
Replying to @Miller_Geek
Yeah, the mirroring technique is a hack, but it allows to try out new things. Seems more healthy than building a soft keyboard in HTML!
1 reply 0 retweets 1 like -
Replying to @mwichary @Miller_Geek
However, since I just saw
@slightlylate passing by this thread… any chance for a Virtual Keyboard API in HTML? :·)1 reply 0 retweets 1 like -
Replying to @mwichary @Miller_Geek
Would it model a second kbd? How would layout be provided? /cc
@RickByers1 reply 0 retweets 0 likes -
Not sure I understand the questions. Here’s what I was thinking of: a) a way to invoke/close the soft keyboard whenever I want, and listen to its input b) a better way to measure how the keyboard occupies the screen space
2 replies 0 retweets 1 like -
I see. Yes, we've had other requests for kbd open/close control. Will check where those ended up.
1 reply 0 retweets 2 likes
Cool! Let me know if I can help in any way. Will be happy to test and give input. It’s in my wheelhouse intersection.™
-
-
There's been various discussions, eg. https://crbug.com/435871 https://crbug.com/399673 . One key challenge is in fitting with all the different OS IME models. Eg. On Android we know nothing about "keys", since the keyboard abstraction is high level. /cc
@david_bokan@garykac1 reply 0 retweets 0 likes -
Replying to @RickByers @mwichary and
But I'm sure there are opportunities to improve specific use cases. Eg. better reasoning about the position is something
@david_bokan has worked on with the Viewport API. You can turn on chrome://flags/#enable-osk-overscroll to see the difference we hope to ship.1 reply 0 retweets 0 likes - Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.