tldraw/apps/examples/e2e/tests
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
..
export-snapshots.spec.ts-snapshots ShapeUtil.getGeometry, selection rewrite (#1751) 2023-07-25 16:10:15 +00:00
export-snapshots.spec.ts ShapeUtil.getGeometry, selection rewrite (#1751) 2023-07-25 16:10:15 +00:00
test-camera.spec.ts Add playwright tests (#1484) 2023-05-30 15:28:56 +01:00
test-canvas-events.spec.ts Remove focus management (#1953) 2023-10-02 11:29:54 +00:00
test-clipboard.spec.ts Rename shapes apis (#1787) 2023-08-02 18:12:25 +00:00
test-focus.spec.ts [fix] Focus events (actually) (#2015) 2023-10-04 09:01:48 +00:00
test-kbds.spec.ts [improvement] quick actions (#1922) 2023-09-19 15:33:39 +00:00
test-routes.spec.ts Add snapshot prop, examples (#1856) 2023-09-08 14:48:55 +00:00
test-shapes.spec.ts [improvement] quick actions (#1922) 2023-09-19 15:33:39 +00:00
test-smoke.spec.ts rename app to editor (#1503) 2023-06-02 15:21:45 +00:00
test-text.spec.ts fix text in geo shapes not causing its container to grow (#2003) 2023-10-03 14:26:13 +00:00