preventDefault on F11 in electron
This commit is contained in:
1 file changed
+1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user