MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / onKeydown

Method onKeydown

core/src/components/menu/menu.tsx:341–345  ·  view source on GitHub ↗
(ev: KeyboardEvent)

Source from the content-addressed store, hash-verified

339 }
340
341 onKeydown(ev: KeyboardEvent) {
342 if (ev.key === 'Escape') {
343 this.close(undefined, BACKDROP);
344 }
345 }
346
347 /**
348 * Returns `true` is the menu is open.

Callers

nothing calls this directly

Calls 1

closeMethod · 0.95

Tested by

no test coverage detected