Cap icon indicating copy to clipboard operation
Cap copied to clipboard

Shortcut recorder rejects ⌘⇧ with a digit or symbol (e.g. ⌘⇧4)

Open HlaKarki opened this issue 1 month ago • 1 comments

Description

Recording ⌘⇧4 for "Screenshot an area" shows "That key can't be used in a shortcut. Try a letter, number or F-key." The same happens for ⌘⇧ with any digit or punctuation key, like ⌘⇧1 or ⌘⇧/. ⌘⇧ with a letter records fine.

The macOS screenshot shortcuts are turned off on this Mac, and the other screenshot apps here (Shottr, CleanShot X) don't bind ⌘⇧4.

On macOS, gpui reports a shifted digit or symbol as the character it types and clears Shift, so ⌘⇧4 reaches shortcuts_capture_key as cmd-$. hotkey_code_for_key has no entry for $, so the recorder shows unsupported_key. The Tauri app stored e.code and e.shiftKey, so ⌘⇧4 recorded there.

Reproduction

  1. Open Settings → Shortcuts → Screenshot an area → Record shortcut.
  2. Press ⌘⇧4.

Additional Context

  • Cap version: 0.6.2
  • Operating system, version: macOS 27.0
  • Device (optional): Apple Silicon
Cap shortcut recorder showing the unsupported key error after pressing ⌘⇧4

HlaKarki avatar Nov 02 '26 00:11 HlaKarki

CAP-965

linear[bot] avatar Nov 02 '26 00:11 linear[bot]