From 669f9298e4e20b1f34020ddc8aadd864f79b4514 Mon Sep 17 00:00:00 2001 From: Gabriel Sroka Date: Fri, 8 Dec 2023 23:00:57 -0800 Subject: [PATCH 1/2] Update apple1.ts --- js/apple1.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/apple1.ts b/js/apple1.ts index 663fb5b..65cba61 100644 --- a/js/apple1.ts +++ b/js/apple1.ts @@ -272,9 +272,10 @@ declare global { let _key: byte; function _keydown(evt: KeyboardEvent) { - if (evt.keyCode === 112) { + const F1 = 112, F2 = 113; + if (evt.keyCode === F1) { cpu.reset(); - } else if (evt.keyCode === 113) { + } else if (evt.keyCode === F2) { if (document.webkitIsFullScreen) { document.webkitCancelFullScreen(); } else { From 6fba3131f0f6ae909bb1f688350f9420871f5608 Mon Sep 17 00:00:00 2001 From: Gabriel Sroka Date: Fri, 8 Dec 2023 23:03:42 -0800 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 936ffc6..e04cf7c 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ## What is this? -An Apple 1 emulator written in Javascript and HTML5 +An Apple 1 emulator written in JavaScript and HTML5. Press F1 (or maybe Shift+F1) to Reset, F2 to enter fullscreen mode. Things are still a little rough around the edges right now, hopefully I will have more time to clean things up.