keyboard
keyboard copied to clipboard
docs incorrectly recommend using Char.toCode / fromCode to interpret KeyCode values
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.