diff options
author | 2019-09-16 21:25:18 +0200 | |
---|---|---|
committer | 2019-09-16 21:25:18 +0200 | |
commit | d2984a1f363b804a8216c2232129e13e4d3c9ebb (patch) | |
tree | 7370b4b26e878c080ea7a5c9c8afab52c4a5c0c3 /src/lib | |
parent | Add information about donating to Franz (diff) | |
download | ferdium-app-d2984a1f363b804a8216c2232129e13e4d3c9ebb.tar.gz ferdium-app-d2984a1f363b804a8216c2232129e13e4d3c9ebb.tar.zst ferdium-app-d2984a1f363b804a8216c2232129e13e4d3c9ebb.zip |
Implement #39
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Menu.js | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/lib/Menu.js b/src/lib/Menu.js index c0436a501..f5d24951c 100644 --- a/src/lib/Menu.js +++ b/src/lib/Menu.js | |||
@@ -69,6 +69,14 @@ const menuItems = defineMessages({ | |||
69 | id: 'menu.edit.emojiSymbols', | 69 | id: 'menu.edit.emojiSymbols', |
70 | defaultMessage: '!!!Emoji & Symbols', | 70 | defaultMessage: '!!!Emoji & Symbols', |
71 | }, | 71 | }, |
72 | back: { | ||
73 | id: 'menu.view.back', | ||
74 | defaultMessage: '!!!Back', | ||
75 | }, | ||
76 | forward: { | ||
77 | id: 'menu.view.forward', | ||
78 | defaultMessage: '!!!Forward', | ||
79 | }, | ||
72 | resetZoom: { | 80 | resetZoom: { |
73 | id: 'menu.view.resetZoom', | 81 | id: 'menu.view.resetZoom', |
74 | defaultMessage: '!!!Actual Size', | 82 | defaultMessage: '!!!Actual Size', |
@@ -324,6 +332,25 @@ const _templateFactory = intl => [ | |||
324 | type: 'separator', | 332 | type: 'separator', |
325 | }, | 333 | }, |
326 | { | 334 | { |
335 | label: intl.formatMessage(menuItems.back), | ||
336 | accelerator: 'CmdOrCtrl+Left', | ||
337 | click() { | ||
338 | const activeService = getActiveWebview(); | ||
339 | activeService.goBack(); | ||
340 | }, | ||
341 | }, | ||
342 | { | ||
343 | label: intl.formatMessage(menuItems.forward), | ||
344 | accelerator: 'CmdOrCtrl+Right', | ||
345 | click() { | ||
346 | const activeService = getActiveWebview(); | ||
347 | activeService.goForward(); | ||
348 | }, | ||
349 | }, | ||
350 | { | ||
351 | type: 'separator', | ||
352 | }, | ||
353 | { | ||
327 | label: intl.formatMessage(menuItems.resetZoom), | 354 | label: intl.formatMessage(menuItems.resetZoom), |
328 | accelerator: 'Cmd+0', | 355 | accelerator: 'Cmd+0', |
329 | click() { | 356 | click() { |