diff options
author | 2019-09-20 12:34:56 +0200 | |
---|---|---|
committer | 2019-09-20 12:34:56 +0200 | |
commit | 1d41b849cb7840a1611d34f20bfe636fc8b903dc (patch) | |
tree | 85d2fe39d8d805008d1ba1c2f458b0cda9224bea /src/lib | |
parent | Fix Todos menu (diff) | |
download | ferdium-app-1d41b849cb7840a1611d34f20bfe636fc8b903dc.tar.gz ferdium-app-1d41b849cb7840a1611d34f20bfe636fc8b903dc.tar.zst ferdium-app-1d41b849cb7840a1611d34f20bfe636fc8b903dc.zip |
Implement Quick Switch feature
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Menu.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/Menu.js b/src/lib/Menu.js index 2898fcad1..5b04346b5 100644 --- a/src/lib/Menu.js +++ b/src/lib/Menu.js | |||
@@ -69,6 +69,10 @@ const menuItems = defineMessages({ | |||
69 | id: 'menu.edit.emojiSymbols', | 69 | id: 'menu.edit.emojiSymbols', |
70 | defaultMessage: '!!!Emoji & Symbols', | 70 | defaultMessage: '!!!Emoji & Symbols', |
71 | }, | 71 | }, |
72 | openQuickSwitch: { | ||
73 | id: 'menu.view.openQuickSwitch', | ||
74 | defaultMessage: '!!!Open Quick Switch', | ||
75 | }, | ||
72 | back: { | 76 | back: { |
73 | id: 'menu.view.back', | 77 | id: 'menu.view.back', |
74 | defaultMessage: '!!!Back', | 78 | defaultMessage: '!!!Back', |
@@ -336,6 +340,16 @@ const _templateFactory = intl => [ | |||
336 | type: 'separator', | 340 | type: 'separator', |
337 | }, | 341 | }, |
338 | { | 342 | { |
343 | label: intl.formatMessage(menuItems.openQuickSwitch), | ||
344 | accelerator: 'CmdOrCtrl+P', | ||
345 | click() { | ||
346 | window.ferdi.features.quickSwitch.state.isModalVisible = true; | ||
347 | }, | ||
348 | }, | ||
349 | { | ||
350 | type: 'separator', | ||
351 | }, | ||
352 | { | ||
339 | label: intl.formatMessage(menuItems.back), | 353 | label: intl.formatMessage(menuItems.back), |
340 | accelerator: 'CmdOrCtrl+Left', | 354 | accelerator: 'CmdOrCtrl+Left', |
341 | click() { | 355 | click() { |