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

Method _handleKeydown

src/material/chips/chip-icons.ts:80–86  ·  view source on GitHub ↗
(event: KeyboardEvent)

Source from the content-addressed store, hash-verified

78 }
79
80 override _handleKeydown(event: KeyboardEvent) {
81 if ((event.keyCode === ENTER || event.keyCode === SPACE) && !this.disabled) {
82 event.stopPropagation();
83 event.preventDefault();
84 this._parentChip._edit(event);
85 }
86 }
87}
88
89/**

Callers

nothing calls this directly

Calls 1

_editMethod · 0.45

Tested by

no test coverage detected