2cd7573c66
We don't want to allow actions that operate on selections when we are not in select tool. For example, you could use duplicate shape keyboard shortcut when in Hand tool and it would just create a shape out of nowhere (we don't clear selection when changing tools so it would duplicate the last selection). ### Change Type - [x] `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] - [ ] `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 1. Select some shapes. 2. Switch to a different tool (like hand) 3. Try to duplicate, align,... via keyboard shortcuts. This should no longer work. - [ ] Unit Tests - [ ] End to end tests ### Release Notes - Disable actions that work on selections when we are not in select tool as it makes it not obvious what the target for these actions. |
||
---|---|---|
.. | ||
assets | ||
editor | ||
state | ||
store | ||
tldraw | ||
tlschema | ||
tlsync | ||
utils | ||
validate |