tldraw/packages
Brian Hung 33465b9c49
move some kbds into actions and tools (#1585)
This PR tries to move some remaining kbds into actions and tools, which
allows them to be overwritten in actions or tools if developer wishes
so. It also modifies `getHotkeysStringFromKbd` to support multiple
`kbds` per action and parses them into proper hotkeys.

Right now, these kbds cannot be removed without reimplementing
`useKeyboardShortcuts` entirely.

### Change Type

- [ ] `patch` — Bug fix
- [ ] `minor` — New feature
- [ ] `major` — Breaking change
- [ ] `dependencies` — Changes to package dependencies[^1]
- [ ] `documentation` — Changes to the documentation only[^2]
- [ ] `tests` — Changes to any test code only[^2]
- [x] `internal` — Any other changes that don't affect the published
package[^2]
- [ ] I don't know

[^1]: publishes a `patch` release, for devDependencies use `internal`
[^2]: will not publish a new version

### Test Plan

Should not affect existing kbds behavior as it just moves them into
actions or tools.

---------

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2023-06-15 11:49:20 +00:00
..
assets Asset improvements (#1557) 2023-06-09 11:43:01 +00:00
editor update exports for user presence (#1583) 2023-06-14 22:08:07 +00:00
file-format Add optional generic to updateShapes / createShapes (#1579) 2023-06-13 18:02:17 +00:00
indices update lazyrepo 2023-06-05 18:32:32 +01:00
polyfills update lazyrepo 2023-06-05 18:32:32 +01:00
primitives Fix arrows with weird bends crashing (#1540) 2023-06-06 13:30:50 +00:00
store update lazyrepo 2023-06-05 18:32:32 +01:00
tldraw mini defineShape API (#1563) 2023-06-12 14:04:14 +00:00
tlschema update exports for user presence (#1583) 2023-06-14 22:08:07 +00:00
ui move some kbds into actions and tools (#1585) 2023-06-15 11:49:20 +00:00
utils mini defineShape API (#1563) 2023-06-12 14:04:14 +00:00
validate mini defineShape API (#1563) 2023-06-12 14:04:14 +00:00