re-com icon indicating copy to clipboard operation
re-com copied to clipboard

Update property to read when handling keyboard events

Open Gregg8 opened this issue 6 years ago • 1 comments

When determining what key was pressed in keyboard event handlers, we examine various properties:

  • which is used by drop-down, input-text and typeahead
  • keyCode is used by input-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

Gregg8 avatar Feb 21 '19 05:02 Gregg8

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

Frozenlock avatar Feb 21 '19 22:02 Frozenlock