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

Method _handleKeydown

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

Source from the content-addressed store, hash-verified

142 }
143
144 override _handleKeydown(event: KeyboardEvent) {
145 if ((event.keyCode === ENTER || event.keyCode === SPACE) && !this.disabled) {
146 event.stopPropagation();
147 event.preventDefault();
148 this._parentChip.remove();
149 }
150 }
151}

Callers

nothing calls this directly

Calls 1

removeMethod · 0.65

Tested by

no test coverage detected