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:
parent
6309cbe6a5
commit
b22ea7cd4e
39 changed files with 350 additions and 176 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue