Skip to main content
tsdraw comes with default keyboard shortcuts for common actions. You can override or disable them through the keyboardShortcuts prop.

Default shortcuts

ShortcutAction
VSelect
HHand
DPen
EEraser
RRectangle
OEllipse
Cmd+ZUndo
Cmd+Shift+ZRedo

Customizing

<Tsdraw keyboardShortcuts={{ tools: { pen: 'p' } }} />

Disabling

<Tsdraw keyboardShortcuts={{ enabled: false }} />
Shortcuts fire only when the canvas has focus.