Merge pull request #6 from iflan/no-help-on-f1

Prevent launching help when F1 is pressed
This commit is contained in:
Will Scullin 2019-01-09 00:40:08 -08:00 committed by GitHub
commit 1c3c5acf1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -791,6 +791,7 @@ function _keydown(evt) {
}
if (evt.keyCode === 112) { // F1 - Reset
cpu.reset();
evt.preventDefault(); // prevent launching help
} else if (evt.keyCode === 113) { // F2 - Full Screen
var elem = document.getElementById('screen');
if (document.webkitCancelFullScreen) {