diff options
author | 2019-09-29 09:10:04 +0200 | |
---|---|---|
committer | 2019-09-29 09:10:04 +0200 | |
commit | 1168ef1d5548157b2d7c82a9c0b254f49f224c9c (patch) | |
tree | 200ecdee43d23330845ffef6c8760e4533e346e5 /src/lib | |
parent | Fix loading of recipe information (diff) | |
download | ferdium-app-1168ef1d5548157b2d7c82a9c0b254f49f224c9c.tar.gz ferdium-app-1168ef1d5548157b2d7c82a9c0b254f49f224c9c.tar.zst ferdium-app-1168ef1d5548157b2d7c82a9c0b254f49f224c9c.zip |
Add quick siwtch and navigation to windows titlebar
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Menu.js | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/lib/Menu.js b/src/lib/Menu.js index 5b04346b5..c0cd1d891 100644 --- a/src/lib/Menu.js +++ b/src/lib/Menu.js | |||
@@ -544,6 +544,35 @@ const _titleBarTemplateFactory = intl => [ | |||
544 | type: 'separator', | 544 | type: 'separator', |
545 | }, | 545 | }, |
546 | { | 546 | { |
547 | label: intl.formatMessage(menuItems.openQuickSwitch), | ||
548 | accelerator: 'CmdOrCtrl+P', | ||
549 | click() { | ||
550 | window.ferdi.features.quickSwitch.state.isModalVisible = true; | ||
551 | }, | ||
552 | }, | ||
553 | { | ||
554 | type: 'separator', | ||
555 | }, | ||
556 | { | ||
557 | label: intl.formatMessage(menuItems.back), | ||
558 | accelerator: 'CmdOrCtrl+Left', | ||
559 | click() { | ||
560 | const activeService = getActiveWebview(); | ||
561 | activeService.goBack(); | ||
562 | }, | ||
563 | }, | ||
564 | { | ||
565 | label: intl.formatMessage(menuItems.forward), | ||
566 | accelerator: 'CmdOrCtrl+Right', | ||
567 | click() { | ||
568 | const activeService = getActiveWebview(); | ||
569 | activeService.goForward(); | ||
570 | }, | ||
571 | }, | ||
572 | { | ||
573 | type: 'separator', | ||
574 | }, | ||
575 | { | ||
547 | label: intl.formatMessage(menuItems.resetZoom), | 576 | label: intl.formatMessage(menuItems.resetZoom), |
548 | accelerator: `${ctrlKey}+0`, | 577 | accelerator: `${ctrlKey}+0`, |
549 | click() { | 578 | click() { |