Home > widget-integration > InstantSearchController > activateEscapeHandler
InstantSearchController.activateEscapeHandler() method
Close the panel on Escape, from anywhere inside it.
Registered for every layout: handleKeydown handles Escape too, but it is bound to the search inputs only, so it never fires once focus moves onto a link inside the results.
Stored in escapeKeyHandler for removal by deactivateEscapeHandler().
Signature:
protected activateEscapeHandler(): void;
Returns:
void