preventDefault on F11 in electron

This commit is contained in:
Thomas Weber committed 2021-09-12 14:28:39 -05:00
1 parent 1a3ed8973f
commit 6f113c556d
1 file changed
+1
+1
View File
@@ -1049,6 +1049,7 @@ if (acquiredLock) {
if (${this.options.target.startsWith('electron-')}) {
document.addEventListener("keydown", (e) => {
if (e.key === "F11") {
e.preventDefault();
if (document.fullscreenElement) {
document.exitFullscreen();
} else {