mirror of
https://github.com/whscullin/apple2js.git
synced 2024-01-12 14:14:38 +00:00
Merge pull request #6 from iflan/no-help-on-f1
Prevent launching help when F1 is pressed
This commit is contained in:
commit
1c3c5acf1c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user