(event: FocusEvent)
| 373 | |
| 374 | useEffect(() => { |
| 375 | const onFocus = (event: FocusEvent) => { |
| 376 | const target = event.target as HTMLElement | null; |
| 377 | if (target?.matches?.('input, textarea, [contenteditable="true"]')) { |
| 378 | revealShell(); |
| 379 | } |
| 380 | }; |
| 381 | document.addEventListener('focusin', onFocus); |
| 382 | return () => document.removeEventListener('focusin', onFocus); |
| 383 | }, []); |
no test coverage detected