apple2js/js/components
Ian Flanigan 4688cae5b2
Refactor key handling to use event.key (#152)
Before, keyboard input used key codes to map events to Apple II keys.
This worked reasonably well, but `event.keyCode` was deprecated and
slated to be removed.

The refactored code now uses `event.key` which returns the localized,
keyboard-mapped key that the user pressed, which may be a letter or a
"symbolic" key.  This is then transformed into an Apple II key.

One side effect of the refactoring is that the keys now light up as
you type and that combinations of mouse clicks on modifiers and plain
keys will take the modifiers into account.
2022-08-24 18:23:22 -07:00
..
2022-07-23 12:00:38 -07:00
2022-08-05 20:32:55 -07:00
2022-05-31 17:41:24 -07:00
2022-06-19 19:42:34 -07:00
2022-07-23 12:32:40 -07:00
2022-05-29 13:48:51 -07:00
2022-06-19 09:01:44 -07:00
2022-06-09 12:22:59 -07:00
2022-06-03 15:30:39 -07:00
2022-06-19 09:01:44 -07:00
2022-07-26 18:05:33 -07:00
2022-06-03 15:30:39 -07:00
2022-06-13 19:58:21 -07:00
2022-07-26 18:05:33 -07:00
2022-06-03 15:30:39 -07:00
2022-06-19 19:42:34 -07:00
2022-07-10 07:58:29 -07:00
2022-06-03 15:30:39 -07:00
2022-05-10 06:52:06 -07:00
2022-06-03 15:30:39 -07:00
2022-06-05 10:57:04 -07:00
2022-05-29 13:48:51 -07:00
2022-07-13 20:34:50 -07:00
2022-05-29 13:48:51 -07:00
2022-06-15 18:44:58 -07:00