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

@ -188,9 +188,9 @@ function HandlesWrapper() {
const isChangingStyle = useValue('isChangingStyle', () => editor.instanceState.isChangingStyle, [
editor,
])
const isReadOnly = useValue('isChangingStyle', () => editor.instanceState.isReadOnly, [editor])
const isReadonly = useValue('isChangingStyle', () => editor.instanceState.isReadonly, [editor])
if (!Handles || !onlySelectedShape || isChangingStyle || isReadOnly) return null
if (!Handles || !onlySelectedShape || isChangingStyle || isReadonly) return null
const handles = editor.getHandles(onlySelectedShape)