MCPcopy
hub / github.com/primer/react / isModifierKey

Function isModifierKey

packages/react/src/drafts/MarkdownEditor/utils.ts:22–23  ·  view source on GitHub ↗
(event: KeyboardEvent | React.KeyboardEvent<unknown>)

Source from the content-addressed store, hash-verified

20export const markdownImage = (altText: string, url: string) => `!${markdownLink(altText, url)}`
21
22export const isModifierKey = (event: KeyboardEvent | React.KeyboardEvent<unknown>) =>
23 isMacOS() ? event.metaKey : event.ctrlKey

Callers 2

MarkdownEditor.tsxFile · 0.90
handlerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected