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
88// If focus is in any iframe owned by the host page rather than the
89// extension's own surface, global shortcuts should bail out so we don't

Callers 4

onPostCardClickFunction · 0.90
onPressFunction · 0.90
onKeyDownFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected