fix(ui): preview shortcut chords and wait for complete modifier input (#1810)
Keep physical modifier events out of the ordinary-key slot, preview held keys immediately, and confirm after release and a one-second settling interval. Preserve legacy control-channel modifier behavior while allowing explicit physical Control/Command input. Add regression coverage, a UI scenario, localized guidance and documentation. Fixes #1809. Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -2,6 +2,32 @@
|
||||
|
||||
Command shortcuts can be changed in File › Keyboard Shortcuts; these are the defaults.
|
||||
|
||||
Click a binding to record a new shortcut. A shortcut can contain Shift, Ctrl/Cmd and
|
||||
Alt/Option modifiers plus exactly one other key. Hold the modifiers, then press the final
|
||||
key; you can take your time assembling the modifiers before that key. The recorder also
|
||||
allows modifiers to arrive after the ordinary key: it previews the chord and waits one
|
||||
second after the last added modifier, and until all keys are released, before confirming.
|
||||
For example, record Shift+Cmd+M for Sketch Mirror on macOS. Escape cancels recording without
|
||||
changing the old binding. Pressing two different ordinary keys cancels the attempt.
|
||||
|
||||
The binding button shows modifiers immediately as you press them, even before adding the
|
||||
ordinary key. Releasing a modifier before that key removes it from the preview. A status
|
||||
line tells you to add a key, release all keys, or wait for confirmation; the proposed chord
|
||||
stays visible during confirmation. Nothing is saved while the preview is still pending.
|
||||
|
||||
On macOS, the editor, Help list, toolbar hints, context menus and S search display Cmd and
|
||||
Option. Existing settings retain SolidCraft's Ctrl/Cmd alias for the primary modifier;
|
||||
Control and Command pressed together are recorded explicitly as Ctrl+Cmd. Conflicting
|
||||
bindings still require confirmation, and built-in reserved shortcuts remain reserved.
|
||||
Recording changes app settings, not the design file.
|
||||
|
||||
This follows the usual [modifier-before-key convention documented by Apple](https://support.apple.com/en-ie/102650)
|
||||
and the [key-event and modifier-state model documented by W3C](https://www.w3.org/TR/uievents/#keys-modifiers).
|
||||
The one-second grace period is SolidCraft's recording aid, not a standard-mandated delay;
|
||||
using an already assigned shortcut has no added delay. Operating systems and browsers can
|
||||
intercept reserved combinations before SolidCraft receives them. Choose a different chord
|
||||
if that happens; recording is cancelled if the app loses focus.
|
||||
|
||||
| Key | Command | Key | Command |
|
||||
|---|---|---|---|
|
||||
| L | Line | E | Extrude |
|
||||
|
||||
Reference in New Issue
Block a user