Home > widget-integration > InstantSearchController > activateFocusTrap
InstantSearchController.activateFocusTrap() method
Activate focus trap for full-width overlay mode.
Prevents Tab / Shift+Tab from leaving the overlay, keeping keyboard focus cycling through interactive elements inside the ISW wrapper.
Stored in focusTrapHandler for removal by deactivateFocusTrap().
**WCAG**: SC 2.1.2 No Keyboard Trap — the trap is intentional (modal-like overlay) and Escape always escapes it, via activateEscapeHandler().
Signature:
protected activateFocusTrap(): void;
Returns:
void