Skip to content

Commit

Permalink
feat(menu): open fullscreen with Ctrl+Cmd+F on Mac
Browse files Browse the repository at this point in the history
Closes #2050
  • Loading branch information
barmac committed Jan 18, 2021
1 parent ff611c1 commit f609c38
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/lib/menu/mac-os/mac-menu-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,16 @@ class MacMenuBuilder extends MenuBuilder {
}));
}

getWindowSubmenuTemplate() {
const submenuTemplate = super.getWindowSubmenuTemplate();

const fullScreenEntry = submenuTemplate.find(({ label }) => label === 'Fullscreen');

fullScreenEntry.accelerator = 'Ctrl+Cmd+F';

return submenuTemplate;
}

build() {
this.appendAppMenu();

Expand Down

0 comments on commit f609c38

Please sign in to comment.