Perform a more conservative remapping of keyCodes for Firefox's sake

This commit is contained in:
Jeff Parsons 2017-01-30 15:30:44 -08:00 committed by Jeff Parsons
commit f21deebffb
10 changed files with 330 additions and 318 deletions

View file

@ -521,6 +521,10 @@ class Keyboard8080 extends Component {
var fPass = true;
var keyCode = event.keyCode;
if (!COMPILED && this.messageEnabled(Messages8080.KEYS)) {
this.printMessage("onKey" + (fDown? "Down" : "Up") + "(" + keyCode + ")", true);
}
/*
* A note about Firefox: it uses different keyCodes for certain keys; there's a logic to the differences
* (they use ASCII codes), but since other browsers didn't follow suit, we must use a mapping table to