Skip to content

Commit ada84ae

Browse files
authored
fix: Allow default keybinds such as minimize, hide, etc (#382)
1 parent 56d7984 commit ada84ae

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

apps/array/src/main/index.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,10 @@ function createWindow(): void {
212212
]
213213
: []),
214214
{ type: "separator" },
215+
{ role: "hide" },
216+
{ role: "hideOthers" },
217+
{ role: "unhide" },
218+
{ type: "separator" },
215219
{
216220
label: "Settings...",
217221
accelerator: "CmdOrCtrl+,",
@@ -280,6 +284,15 @@ function createWindow(): void {
280284
},
281285
],
282286
},
287+
{
288+
label: "Window",
289+
submenu: [
290+
{ role: "minimize" },
291+
{ role: "zoom" },
292+
{ type: "separator" },
293+
{ role: "front" },
294+
],
295+
},
283296
];
284297

285298
const menu = Menu.buildFromTemplate(template);

0 commit comments

Comments
 (0)