Merge pull request #44 from gabrielsroka/patch-1

Update apple1.ts
This commit is contained in:
Will Scullin 2023-12-14 10:16:51 -08:00 committed by GitHub
commit b18f41ff1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -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.

View File

@ -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 {