Skip to content
This repository has been archived by the owner on Aug 23, 2018. It is now read-only.

docs incorrectly recommend using Char.toCode / fromCode to interpret KeyCode values #11

Open
jhbrown94 opened this issue Aug 8, 2018 · 0 comments

Comments

@jhbrown94
Copy link

jhbrown94 commented Aug 8, 2018

Char.toCode/Char.fromCode convert to/from UTF-16 values. KeyCode values only intermittently overlap with those.

E.g. on Chrome on my Mac, toCode ']' yields 93, while the KeyCode registers as 221.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant