()
| 76 | return () => { if (previous instanceof HTMLElement && previous.isConnected) previous.focus(); }; |
| 77 | }, [embedded]); |
| 78 | const close = () => { if (pending.current) return; if (count) setConfirmClose(true); else onClose(); }; |
| 79 | const keyDown = (event: KeyboardEvent<HTMLDivElement>) => { |
| 80 | if (event.key === 'Escape') { event.stopPropagation(); close(); } |
| 81 | if (event.key !== 'Tab') return; |
no outgoing calls