You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
stchang
changed the title
does not support capital letter input (and shift key characeters)
does not support capital letter input (and other shift key characters)
Sep 10, 2015
We should really collaborate on this, given that the same code is used in WeScheme. The issue is that keydown events are the ONLY way to find out if control keys (shift, control, f2, etc) have been pressed, but keypress events are the ONLY way to find out what actual ASCII character should be generated. You need to listen for both to get the "full" info, but this gets really messy, as I've discovered by implementing it in WeScheme.
However, even this approach has limitations when it comes to foreign characters.
I think we need to be a lot more clever here, most likely by sending keypress events to an offscreen <TEXTAREA>, capturing the generated character, and sending that to the key-event handler. What do you think?
See vishesh/whalebin#16
The text was updated successfully, but these errors were encountered: