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

Method _allowFocusEscape

src/material/chips/chip-grid.ts:439–443  ·  view source on GitHub ↗

* Removes the `tabindex` from the chip grid and resets it back afterwards, allowing the * user to tab out of it. This prevents the grid from capturing focus and redirecting * it back to the first chip, creating a focus trap, if it user tries to tab away.

()

Source from the content-addressed store, hash-verified

437 * it back to the first chip, creating a focus trap, if it user tries to tab away.
438 */
439 protected override _allowFocusEscape() {
440 if (!this._chipInput?.focused) {
441 super._allowFocusEscape();
442 }
443 }
444
445 /** Handles custom keyboard events. */
446 override _handleKeydown(event: KeyboardEvent) {

Callers 1

_handleKeydownMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected