Skip to content

Commit

Permalink
! Fix wrong new shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
PikachuEXE committed Dec 29, 2024
1 parent aeffacb commit a32e332
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
5 changes: 3 additions & 2 deletions src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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 }

Expand All @@ -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 }

Expand Down

0 comments on commit a32e332

Please sign in to comment.