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
..
css Debugger disk info groundwork (#145) 2022-07-23 12:00:38 -07:00
debugger Double Hires preview 2022-08-05 20:32:55 -07:00
hooks Preact error dialog (#120) 2022-05-31 17:41:24 -07:00
util Refactor key handling to use event.key (#152) 2022-08-24 18:23:22 -07:00
App.tsx Cheap and cheerful debugger (#135) 2022-06-19 19:42:34 -07:00
Apple2.tsx Debugger off by default 2022-07-23 12:32:40 -07:00
AudioControl.tsx React linters (#117) 2022-05-29 13:48:51 -07:00
BlockDisk.tsx Simple Preact download (#134) 2022-06-19 09:01:44 -07:00
BlockFileModal.tsx Add drag and drop for disks (#130) 2022-06-12 09:42:01 -07:00
ControlButton.tsx Preact printer (#129) 2022-06-09 12:22:59 -07:00
ControlStrip.tsx Cheap and cheerful debugger (#135) 2022-06-19 19:42:34 -07:00
CPUMeter.tsx Use CSS modules (#123) 2022-06-03 15:30:39 -07:00
DiskDragTarget.tsx Add drag and drop for disks (#130) 2022-06-12 09:42:01 -07:00
DiskII.tsx Simple Preact download (#134) 2022-06-19 09:01:44 -07:00
DownloadModal.tsx Simple Preact download (#134) 2022-06-19 09:01:44 -07:00
Drives.tsx More file modal fixes 2022-07-26 18:05:33 -07:00
ErrorModal.tsx Use CSS modules (#123) 2022-06-03 15:30:39 -07:00
FileChooser.tsx Fix iOS Safari iCloud 2022-06-13 19:58:21 -07:00
FileModal.tsx More file modal fixes 2022-07-26 18:05:33 -07:00
Header.tsx Use CSS modules (#123) 2022-06-03 15:30:39 -07:00
Inset.tsx Cheap and cheerful debugger (#135) 2022-06-19 19:42:34 -07:00
Keyboard.tsx Refactor key handling to use event.key (#152) 2022-08-24 18:23:22 -07:00
LanguageCard.tsx Add language card 2022-07-10 07:58:29 -07:00
Modal.tsx Use CSS modules (#123) 2022-06-03 15:30:39 -07:00
Mouse.tsx Fix copy paste outside of screen (#143) 2022-07-16 20:50:15 -07:00
OptionsContext.tsx Preact UI (#106) 2022-05-10 06:52:06 -07:00
OptionsModal.tsx Use CSS modules (#123) 2022-06-03 15:30:39 -07:00
Printer.tsx Fix copy paste outside of screen (#143) 2022-07-16 20:50:15 -07:00
ProgressModal.tsx Preact mass storage (#125) 2022-06-05 10:57:04 -07:00
Screen.tsx Fix copy paste outside of screen (#143) 2022-07-16 20:50:15 -07:00
Slinky.tsx React linters (#117) 2022-05-29 13:48:51 -07:00
Tabs.tsx More debugger panels (#141) 2022-07-13 20:34:50 -07:00
ThunderClock.tsx React linters (#117) 2022-05-29 13:48:51 -07:00
Videoterm.tsx Preact Videoterm 2022-06-15 18:44:58 -07:00