Merge branch 'master' of github.com:whscullin/apple2js

This commit is contained in:
Will Scullin 2019-01-09 21:49:46 -08:00
commit 868923d550
No known key found for this signature in database
GPG Key ID: 9092A5C0A673416B
1 changed files with 10 additions and 2 deletions

View File

@ -769,8 +769,12 @@ function _keydown(evt) {
} else if (evt.keyCode == 91 || evt.keyCode == 93) { // Command
keyboard.commandKey(true);
} else if (evt.keyCode == 18) { // Alt
if (evt.originalEvent.location == 1) {
keyboard.commandKey(true);
} else {
keyboard.optionKey(true);
}
}
}
function _keyup(evt) {
@ -784,8 +788,12 @@ function _keyup(evt) {
} else if (evt.keyCode == 91 || evt.keyCode == 93) { // Command
keyboard.commandKey(false);
} else if (evt.keyCode == 18) { // Alt
if (evt.originalEvent.location == 1) {
keyboard.commandKey(false);
} else {
keyboard.optionKey(false);
}
}
}
function updateScreen() {