MCPcopy Index your code
hub / github.com/UI5/webcomponents / hasModifierKeys

Function hasModifierKeys

packages/base/src/Keys.ts:251–251  ·  view source on GitHub ↗
(event: KeyboardEvent)

Source from the content-addressed store, hash-verified

249const isKeyP = (event: KeyboardEvent): boolean => ((event.key === "P" || event.key === "p") || event.which === KeyCodes.P) && checkModifierKeys(event, false, false, false);
250
251const hasModifierKeys = (event: KeyboardEvent): boolean => event.shiftKey || event.altKey || getCtrlKey(event);
252
253const getCtrlKey = (event: KeyboardEvent): boolean => !!(event.metaKey || event.ctrlKey); // double negation doesn't have effect on boolean but ensures null and undefined are equivalent to false.
254

Callers 15

isEnterFunction · 0.85
isSpaceFunction · 0.85
isLeftFunction · 0.85
isRightFunction · 0.85
isUpFunction · 0.85
isDownFunction · 0.85
isHomeFunction · 0.85
isEndFunction · 0.85
isEscapeFunction · 0.85
isTabNextFunction · 0.85
isBackSpaceFunction · 0.85
isDeleteFunction · 0.85

Calls 1

getCtrlKeyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…