tldraw/apps/examples
Steve Ruiz d715fa3a2e
[fix] Focus events (actually) (#2015)
This PR restores the controlled nature of focus. Focus allows keyboard
shortcuts and other interactions to occur. The editor's focus should
always / entirely be controlled via the autoFocus prop or by manually
setting `editor.instanceState.isFocused`.

Design note: I'm starting to think that focus is the wrong abstraction,
and that we should instead use a kind of "disabled" state for editors
that the user isn't interacting with directly. In a page where multiple
editors exit (e.g. a notion page), a developer could switch from
disabled to enabled using a first interaction.

### Change Type

- [x] `patch` — Bug fix

### Test Plan

- [x] End to end tests
2023-10-04 09:01:48 +00:00
..
e2e [fix] Focus events (actually) (#2015) 2023-10-04 09:01:48 +00:00
src [fix] Focus events (actually) (#2015) 2023-10-04 09:01:48 +00:00
package.json Fix pinch start with toolbar open (#1895) 2023-09-18 10:50:15 +00:00
README.md transfer-out: transfer out 2023-04-25 12:01:25 +01:00
tsconfig.json Add snapshot prop, examples (#1856) 2023-09-08 14:48:55 +00:00
vercel.json [fix] example routes on vercel (#1391) 2023-05-16 14:37:40 +00:00
vite.config.ts Feature flags rework (#1474) 2023-05-30 13:06:15 +00:00

@tldraw/example