tldraw/packages
Mitja Bezenšek 2cd7573c66
Only actions on selected shapes if we are in select tool. (#2617)
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.
2024-01-24 13:38:58 +00:00
..
assets [dotcom] Delete service worker, cache tldraw assets (#2552) 2024-01-19 15:31:01 +00:00
editor debug: add FPS counter (#2558) 2024-01-24 12:23:26 +00:00
state Bump Yarn to 4.0.2 and add version constraints (#2481) 2024-01-18 11:09:17 +00:00
store Bump Yarn to 4.0.2 and add version constraints (#2481) 2024-01-18 11:09:17 +00:00
tldraw Only actions on selected shapes if we are in select tool. (#2617) 2024-01-24 13:38:58 +00:00
tlschema arrows: add ability to change label placement (#2557) 2024-01-24 10:19:20 +00:00
tlsync arrows: add ability to change label placement (#2557) 2024-01-24 10:19:20 +00:00
utils Bump Yarn to 4.0.2 and add version constraints (#2481) 2024-01-18 11:09:17 +00:00
validate Bump Yarn to 4.0.2 and add version constraints (#2481) 2024-01-18 11:09:17 +00:00