More cleanup, focus bug fixes (#1749)

This PR is another grab bag:
- renames `readOnly` to `readonly` throughout editor
- fixes a regression related to focus and keyboard shortcuts
- adds a small outline for focused editors

### Change Type

- [x] `major`

### Test Plan

- [x] End to end tests
This commit is contained in:
Steve Ruiz 2023-07-19 11:52:21 +01:00 committed by GitHub
parent 6309cbe6a5
commit b22ea7cd4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
39 changed files with 350 additions and 176 deletions

View file

@ -80,7 +80,9 @@ export function useCanvasEvents() {
function onTouchStart(e: React.TouchEvent) {
;(e as any).isKilled = true
document.body.click() // god damn it, but necessary for long presses to open the context menu
// todo: investigate whether this effects keyboard shortcuts
// god damn it, but necessary for long presses to open the context menu
document.body.click()
preventDefault(e)
}