Skip to content

Commit

Permalink
Fix issue where Alt + F4 shortcut cannot close the window
Browse files Browse the repository at this point in the history
  • Loading branch information
hbl917070 committed Dec 16, 2024
1 parent 7773fe5 commit 7e52334
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Www/ts/MainWindow/Hotkey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ export class Hotkey {
return;
}

if (e.code === "F4" && e.altKey) {
baseWindow.close();
return;
}

// 如果開啟側邊的文字編輯器
if (M.textEditor.getIsShow()) {
/*if (e.code == "Escape") {
Expand Down

0 comments on commit 7e52334

Please sign in to comment.