simonw/datasette-app

Command+left/Command+right for back/forward in addition to Command+[/Command+]

simonw opened this issue · 1 comments

I find myself using those shortcuts interchangeably, but the left/right arrows one don't work.

Electron doesn't support this at the moment (I was hoping I could pass a list to the accelerator property): electron/electron#5256

Here's a reasonable sounding workaround: electron/electron#5256 (comment)

A workaround for this problem is to have create multiple MenuItem and keep only one of them visible.

        {
          label: 'Zoom In',
          accelerator: 'CmdOrCtrl+=',
          click: handleZoomIn,
          enabled: hasWorkspaces,
          visible: false,
        },
        {
          label: 'Zoom In',
          accelerator: 'CmdOrCtrl+Plus',
          click: handleZoomIn,
          enabled: hasWorkspaces,
        },