tldraw/packages
Gabriel Lee e276937df8
fix: escape eraser tool on escape (#1732)
Escape the eraser tool on pressing the escape key.

(note that the same bug exists for the laser tool, i'm not sure if the
escape key behaviour should be the same for it too)


![licecap-output](https://github.com/tldraw/tldraw/assets/5616556/14bcb1f3-325c-4d28-ad39-a6a7205bd011)

Fixes #1731 

### 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 eraser tool
2. Press [escape], you should be back in the select tool
3. Select eraser tool, and start dragging around and press [escape], the
behaviour should be same as before

- [ ] Unit Tests
- [ ] End to end tests

### Release Notes

- escape eraser tool on escape

---------

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2023-07-17 21:59:27 +00:00
..
assets Add cloud shape (#1708) 2023-07-07 15:32:08 +00:00
editor tldraw zero - package shuffle (#1710) 2023-07-17 21:22:34 +00:00
state tldraw zero - package shuffle (#1710) 2023-07-17 21:22:34 +00:00
store tldraw zero - package shuffle (#1710) 2023-07-17 21:22:34 +00:00
tldraw fix: escape eraser tool on escape (#1732) 2023-07-17 21:59:27 +00:00
tlschema tldraw zero - package shuffle (#1710) 2023-07-17 21:22:34 +00:00
utils tldraw zero - package shuffle (#1710) 2023-07-17 21:22:34 +00:00
validate tldraw zero - package shuffle (#1710) 2023-07-17 21:22:34 +00:00