Ah, I’m sorry. I broke it by accident recently. Try again?
-
-
-
Replying to @Miller_Geek @mwichary
Interestingly newlines work on desktop but not mobile. This includes using chrome dev tools to send "enter" from my laptop keyboard.
1 reply 0 retweets 0 likes -
-
Replying to @mwichary
I think I can put in a listener to find out. Give me a minute.
1 reply 0 retweets 0 likes -
Replying to @Miller_Geek @mwichary
ok, weirdly if I just do `window.addEventListener('Input'...` on my phone I can see the input events (but nothing for enter), but I see no input events at all if I use the same listener on my computer. Gonna try looking for keypress events instead.
1 reply 0 retweets 0 likes -
-
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
This is getting into behavior I don't understand that seems likely to be interesting under the hood. If I type on my phone, most characters are unidentified on keydown, but "Enter" is understood correctly. "Backspace" is understood correctly only if the input is empty.
2 replies 0 retweets 0 likes
Feel free to peek under the hood! It’s a relatively naïve system that assumes a device is either touch based (with virtual keyboard) or mouse based (with physical keyboard). Many are not.
-
-
Replying to @mwichary
I mostly meant in the browser, I would think it would be browser stuff marking those keys as unidentified.
0 replies 0 retweets 0 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
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.