PinnedWindowFocus
What pinWindowFocus returns: whether the class had to be added, and how to undo that.
Import:
import type { PinnedWindowFocus } from 'obsidian-integration-testing';Signature:
export interface PinnedWindowFocusProperties
| Property | Type | Description |
|---|---|---|
| isPinned | boolean | Whether the window was drawn unfocused, so the class was added. false means the window already carried it, and restore is then a no-op. |
| restore | () => Promise<void> | Hands the class back to Obsidian: sets it to whether the window is focused now, exactly as Obsidian's own focuschange handler would. |
Links to this page: