Keyboard
The Keyboard APIs are useful to make your actions accessible via the keyboard shortcuts. Shortcuts help users to use your command without touching the mouse.
Types
Keyboard.Shortcut
A keyboard shortcut is defined by one or more modifier keys (command, control, etc.) and a single key equivalent (a character or special key).
See KeyModifier and KeyEquivalent for supported values.
Example
Properties
Property | Description | Type |
---|---|---|
key* | The key of the keyboard shortcut. | |
modifiers* | The modifier keys of the keyboard shortcut. |
Keyboard.Shortcut.Common
A collection of shortcuts that are commonly used throughout Raycast. Using them should help provide a more consistent experience and preserve muscle memory.
Name | Shortcut |
---|---|
Copy | ⌘ + ⇧ + C |
CopyDeeplink | ⌘ + ⇧ + C |
CopyName | ⌘ + ⇧ + . |
CopyPath | ⌘ + ⇧ + , |
Duplicate | ⌘ + D |
Edit | ⌘ + E |
MoveDown | ⌘ + ⇧ + ↓ |
MoveUp | ⌘ + ⇧ + ↑ |
New | ⌘ + N |
Open | ⌘ + O |
OpenWith | ⌘ + ⇧ + O |
Pin | ⌘ + ⇧ + P |
Refresh | ⌘ + R |
Remove | ⌃ + X |
RemoveAll | ⌃ + ⇧ + X |
ToggleQuickLook | ⌘ + Y |
Keyboard.KeyEquivalent
KeyEquivalent of a Shortcut
Keyboard.KeyModifier
Modifier of a Shortcut
Last updated