MCPcopy Index your code
hub / github.com/angular/components / _handleFocus

Method _handleFocus

src/material/chips/chip-row.ts:150–154  ·  view source on GitHub ↗

Sends focus to the first gridcell when the user clicks anywhere inside the chip.

()

Source from the content-addressed store, hash-verified

148
149 /** Sends focus to the first gridcell when the user clicks anywhere inside the chip. */
150 _handleFocus() {
151 if (!this._isEditing && !this.disabled) {
152 this.focus();
153 }
154 }
155
156 override _handleKeydown(event: KeyboardEvent): void {
157 if (event.keyCode === ENTER && !this.disabled) {

Callers

nothing calls this directly

Calls 1

focusMethod · 0.65

Tested by

no test coverage detected