fix: preventFocus TypeError on window focus/blur during a press (#10592)
preventFocus attaches focus and blur listeners to the window. When the
window itself gains or loses focus the target is Window not a Node.
Both helpers passed it straight into nodeContains, so Node.contains
threw:
TypeError: Failed to execute 'contains' on 'Node': parameter 1 is not of type 'Node'.
Guard both calls with isNode and add a usePress test.
Fixes #10591