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
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue