Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_onKeydown(evt: KeyboardEvent): void {
const index = this._getListItemIndexByEvent(evt);
const target = evt.target as Element;
if (index >= 0) {
this._foundation.handleKeydown(evt, target.classList.contains(cssClasses.LIST_ITEM_CLASS), index);
}
}