SDA-3869 - include more local shortcuts to fix issue on Windows (#1492)

This commit is contained in:
Kiran Niranjan 2022-09-14 15:31:43 +05:30 committed by GitHub
parent aba73978b2
commit 6349222335
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,6 +38,38 @@ export default class LocalMenuShortcuts {
}),
),
);
this.menu.append(
new MenuItem(
this.getMenuItemOptions({
accelerator: 'CmdOrCtrl+0',
click: () => resetZoomLevel(),
}),
),
);
this.menu.append(
new MenuItem(
this.getMenuItemOptions({
accelerator: 'CmdOrCtrl+M',
role: 'minimize',
}),
),
);
this.menu.append(
new MenuItem(
this.getMenuItemOptions({
accelerator: 'CmdOrCtrl+W',
role: 'close',
}),
),
);
this.menu.append(
new MenuItem(
this.getMenuItemOptions({
accelerator: 'F11',
role: 'togglefullscreen',
}),
),
);
this.menu.append(
new MenuItem(
this.getMenuItemOptions({