When a critical modal is open, focus must never leave – not even by clicking outside, using Tab, or programmatic attempts.
FocusLock provides an unbreakable focus trap.
lockFocus(container) intercepts focusin and mousedown events, redirecting focus back to the
container. Returns a cleanup function.
CriticalModal, PaymentDialog, SecurityPinInput, EmergencyOverlay