Back to Tldraw

Custom keyboard shortcuts

apps/examples/src/examples/ui/keyboard-shortcuts/README.md

5.2.1420 B
Original Source

Replace tldraw's default keyboard shortcuts with your own.


This example shows how you can replace tldraw's default keyboard shortcuts with your own, or add a shortcut for an action that doesn't have one. An example of how to add shortcuts for custom tools can be found in the custom-config example.

  • Toggle show grid by pressing 'x'
  • Select the Draw tool by pressing 'p'
  • Copy as png by pressing 'ctrl/cmd + 1'