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

Method _handleKeydown

src/material/sort/sort-header.ts:182–187  ·  view source on GitHub ↗
(event: KeyboardEvent)

Source from the content-addressed store, hash-verified

180 }
181
182 _handleKeydown(event: KeyboardEvent) {
183 if (event.keyCode === SPACE || event.keyCode === ENTER) {
184 event.preventDefault();
185 this._toggleOnInteraction();
186 }
187 }
188
189 /** Whether this MatSortHeader is currently sorted in either ascending or descending order. */
190 _isSorted() {

Callers

nothing calls this directly

Calls 1

_toggleOnInteractionMethod · 0.95

Tested by

no test coverage detected