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

Function hasModifierKey

src/cdk/keycodes/modifiers.ts:15–21  ·  view source on GitHub ↗
(event: KeyboardEvent, ...modifiers: ModifierKey[])

Source from the content-addressed store, hash-verified

13 * @param event Event to be checked.
14 */
15export function hasModifierKey(event: KeyboardEvent, ...modifiers: ModifierKey[]): boolean {
16 if (modifiers.length) {
17 return modifiers.some(modifier => event[modifier]);
18 }
19
20 return event.altKey || event.shiftKey || event.ctrlKey || event.metaKey;
21}

Callers 15

_handleKeydownMethod · 0.90
MatTooltipClass · 0.90
_handleKeydownMethod · 0.90
_isSeparatorKeyMethod · 0.90
constructorMethod · 0.90
_keydownMethod · 0.90
_handleKeydownMethod · 0.90
_handleKeydownMethod · 0.90
_handleKeydownMethod · 0.90
_handleKeydownMethod · 0.90
_handleKeydownMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…