Home > widget-integration > InstantSearchController > handleKeydown

InstantSearchController.handleKeydown() method

Handle keydown event for keyboard navigation.

**Legacy**: searchInputKeydownListener(context, e, input) **New**: handleKeydown(e, input) with proper state management

Signature:

handleKeydown(event: KeyboardEvent, input: HTMLInputElement): void;

Parameters

Parameter

Type

Description

event

KeyboardEvent

Keyboard event

input

HTMLInputElement

Input element

Returns:

void