50bae6d4a1
Keyboard shortcuts for selecting tools still worked in readonly mode. This now disables them - except for select, hand, and zoom tool. ### Change Type - [x] `patch` — Bug Fix ### Test Plan 1. Create a readonly room. 2. Press keyboard shortcuts for tools and make sure we don't transition to them (tools toolbar should always show either select or hand tool as active). 3. Also make sure the keyboard shortcuts still work in non readonly rooms. - [ ] Unit Tests - [ ] Webdriver tests ### Release Notes - Disable keyboard shortcut events for tools in readonly mode. We only allow the select, hand tools, and zoom tool. |
||
---|---|---|
.. | ||
src | ||
api-extractor.json | ||
api-report.md | ||
CHANGELOG.md | ||
package.json | ||
README.md | ||
setupTests.js | ||
tsconfig.json | ||
ui.css |
@tldraw/ui
License
The source code in this repository (as well as our 2.0+ distributions and releases) are currently licensed under Apache-2.0. These licenses are subject to change in our upcoming 2.0 release. If you are planning to use tldraw in a commercial product, please reach out at hello@tldraw.com.