mirror of
https://github.com/whscullin/apple2js.git
synced 2024-01-12 14:14:38 +00:00
Prevent launching help when F1 is pressed
In some browsers, in particular Chrome OS, pressing F1 opens a help screen. This can be suppressed by calling preventDefault() on the event.
This commit is contained in:
parent
8ee8b01d0a
commit
2d5972f7f5
@ -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