keyboard icon indicating copy to clipboard operation
keyboard copied to clipboard

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

Open jhbrown94 opened this issue 6 years ago • 0 comments

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.

jhbrown94 avatar Aug 08 '18 03:08 jhbrown94