(view: EditorView | null)
| 126 | } |
| 127 | |
| 128 | export function isEditorFocused(view: EditorView | null): boolean { |
| 129 | if (!view) return false |
| 130 | const active = document.activeElement |
| 131 | return view.hasFocus || (active instanceof Node && view.dom.contains(active)) |
| 132 | } |
| 133 | |
| 134 | // --------------------------------------------------------------------------- |
| 135 | // Sidebar flat item list |
no outgoing calls
no test coverage detected