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

Method _handleKeydown

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

Source from the content-addressed store, hash-verified

95 }
96
97 override _handleKeydown(event: KeyboardEvent) {
98 if ((event.keyCode === ENTER || event.keyCode === SPACE) && !this.disabled) {
99 event.stopPropagation();
100 event.preventDefault();
101 this._parentChip._edit(event);
102 }
103 }
104}
105
106/**

Callers

nothing calls this directly

Calls 1

_editMethod · 0.45

Tested by

no test coverage detected