fix: restrict fix #265 to Win32, close #1063 (#1083)

This commit is contained in:
sadata7 2021-03-14 10:07:04 -04:00 committed by GitHub
parent ec8e383b89
commit 732153b231
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1103,7 +1103,7 @@ document.addEventListener("keydown", e => {
// Fix #265
window.addEventListener("keyup", e => {
if (e.key === "F4" && e.altKey === true) {
if (require("os").platform() === "win32" && e.key === "F4" && e.altKey === true) {
electron.remote.app.quit();
}
});