You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Press a shortcut twice to run Zen's action when a website already uses that shortcut
#16610
When a website handles a keyboard shortcut that Zen also uses, the website always wins, and Zen's action can't be reached at all while focus is in the page. For example, Cmd/Ctrl+S (toggle sidebar / compact mode):
LeetCode: saves the code in the editor
Overleaf: recompiles the PDF
Figma: its own save action
The only current workaround is setting permissions.default.shortcuts = 2 in about:config, but that goes too far: it disables the website's shortcut everywhere, so you lose things like LeetCode's save.
Proposal
Keep the current website-first behavior, but add a "press again" fallback:
First press: if the website consumes the shortcut, nothing changes. The website handles it as today.
If the user presses the same shortcut again within a short window (around 700ms), Zen runs its own command.
Optional: on the first press, show a small toast like "Press ⌘S again to toggle sidebar", so the behavior is discoverable.
This keeps both the website's shortcut and Zen's shortcut usable without any setting. It also matches what users coming from Arc and Dia are used to.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Problem
When a website handles a keyboard shortcut that Zen also uses, the website always wins, and Zen's action can't be reached at all while focus is in the page. For example,
Cmd/Ctrl+S(toggle sidebar / compact mode):The only current workaround is setting
permissions.default.shortcuts = 2inabout:config, but that goes too far: it disables the website's shortcut everywhere, so you lose things like LeetCode's save.Proposal
Keep the current website-first behavior, but add a "press again" fallback:
This keeps both the website's shortcut and Zen's shortcut usable without any setting. It also matches what users coming from Arc and Dia are used to.
Related: #12820, #12416, #11251
I'd be happy to work on a PR for this if the direction sounds acceptable.
All reactions