MCPcopy Create free account
hub / github.com/angular/components / onKeydown

Method onKeydown

src/aria/private/menu/menu.ts:724–729  ·  view source on GitHub ↗

Handles keyboard events for the menu trigger.

(event: KeyboardEvent)

Source from the content-addressed store, hash-verified

722
723 /** Handles keyboard events for the menu trigger. */
724 onKeydown(event: KeyboardEvent) {
725 if (!this.inputs.disabled()) {
726 this.hasBeenInteracted.set(true);
727 this.keydownManager().handle(event);
728 }
729 }
730
731 /** Handles click events for the menu trigger. */
732 onClick() {

Callers

nothing calls this directly

Calls 2

setMethod · 0.80
disabledMethod · 0.45

Tested by

no test coverage detected