MCPcopy Create free account
hub / github.com/dailydotdev/apps / isSpecialKeyPressed

Function isSpecialKeyPressed

packages/shared/src/lib/func.ts:80–86  ·  view source on GitHub ↗
({
  event,
}: {
  event: MouseEvent | KeyboardEvent;
})

Source from the content-addressed store, hash-verified

78};
79
80export const isSpecialKeyPressed = ({
81 event,
82}: {
83 event: MouseEvent | KeyboardEvent;
84}): boolean => {
85 return event.ctrlKey || event.metaKey;
86};
87
88const appleDeviceMatch = /(Mac|iPhone|iPod|iPad)/i;
89

Callers 3

onPostCardClickFunction · 0.90
onPressFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected