未验证 提交 732153b2 编写于 作者: S sadata7 提交者: GitHub

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

上级 ec8e383b
......@@ -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();
}
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册