Cap
Cap copied to clipboard
Shortcut recorder rejects ⌘⇧ with a digit or symbol (e.g. ⌘⇧4)
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
- Open Settings → Shortcuts → Screenshot an area → Record shortcut.
- Press ⌘⇧4.
Additional Context
- Cap version: 0.6.2
- Operating system, version: macOS 27.0
- Device (optional): Apple Silicon