MCPcopy Create free account
hub / github.com/anomalyco/opencode / signatureFromEvent

Function signatureFromEvent

packages/app/src/context/command.tsx:56–58  ·  view source on GitHub ↗
(event: KeyboardEvent)

Source from the content-addressed store, hash-verified

54}
55
56function signatureFromEvent(event: KeyboardEvent) {
57 return signature(normalizeKey(event.key), event.ctrlKey, event.metaKey, event.shiftKey, event.altKey)
58}
59
60function isAllowedEditableKeybind(id: string | undefined) {
61 if (!id) return false

Callers 1

handleKeyDownFunction · 0.85

Calls 2

signatureFunction · 0.85
normalizeKeyFunction · 0.70

Tested by

no test coverage detected