Back to Tldraw

Custom actions

apps/examples/src/examples/ui/action-overrides/README.md

4.5.11449 B
Original Source

Customize and override tldraw's actions.


This example shows how you can override tldraw's actions object to change keyboard shortcuts and add your own custom actions. In this case we've changed the delete action's shortcut to 'Shift + X', and we've added a new action that shows a toast when you press the 'S' key. For more information on keyboard shortcuts see the keyboard shortcuts example.