diff --git a/src/constants.js b/src/constants.js index 1cf16284c7492..b7f37a3213895 100644 --- a/src/constants.js +++ b/src/constants.js @@ -127,8 +127,8 @@ const KeyboardShortcuts = { SHOW_SHORTCUTS: 'shift+?', HISTORY_BACKWARD: 'alt+arrowleft', HISTORY_FORWARD: 'alt+arrowright', - HISTORY_BACKWARD_ALT_MAC: 'cmd+arrowleft', - HISTORY_FORWARD_ALT_MAC: 'cmd+arrowright', + HISTORY_BACKWARD_ALT_MAC: 'cmd+[', + HISTORY_FORWARD_ALT_MAC: 'cmd+]', FULLSCREEN: 'f11', NAVIGATE_TO_SETTINGS: 'ctrl+,', NAVIGATE_TO_HISTORY: 'ctrl+H', diff --git a/src/main/index.js b/src/main/index.js index eeb5508ef121f..87bdd3d6517f4 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -11,6 +11,7 @@ import { DBActions, SyncEvents, ABOUT_BITCOIN_ADDRESS, + KeyboardShortcuts, } from '../constants' import * as baseHandlers from '../datastores/handlers/base' import { extractExpiryTimestamp, ImageCache } from './ImageCache' @@ -1706,7 +1707,7 @@ function runApp() { ? [ { label: 'Back', - accelerator: 'Cmd+Left', + accelerator: KeyboardShortcuts.APP.GENERAL.HISTORY_BACKWARD_ALT_MAC, click: (_menuItem, browserWindow, _event) => { if (browserWindow == null) { return } @@ -1730,7 +1731,7 @@ function runApp() { ? [ { label: 'Forward', - accelerator: 'Cmd+Right', + accelerator: KeyboardShortcuts.APP.GENERAL.HISTORY_FORWARD_ALT_MAC, click: (_menuItem, browserWindow, _event) => { if (browserWindow == null) { return }