re-com
re-com copied to clipboard
Update property to read when handling keyboard events
When determining what key was pressed in keyboard event handlers, we examine various properties:
-
which
is used bydrop-down
,input-text
andtypeahead
-
keyCode
is used byinput-time
Both of these are now deprecated, so they should all be switched to use the key
property - info
Thanks to: https://github.com/Day8/re-frame-10x/issues/231
Some additional info, in case it would be useful:
keyCode
is supported by all browsers. (According to caniuse.com)
key
not as much.
https://caniuse.com/#search=keyboardevent.key