MCPcopy
hub / github.com/antonmedv/codejar / isCtrl

Function isCtrl

codejar.ts:491–493  ·  view source on GitHub ↗
(event: KeyboardEvent)

Source from the content-addressed store, hash-verified

489 }
490
491 function isCtrl(event: KeyboardEvent) {
492 return event.metaKey || event.ctrlKey
493 }
494
495 function isUndo(event: KeyboardEvent) {
496 return isCtrl(event) && !event.shiftKey && getKeyCode(event) === 'Z'

Callers 3

isUndoFunction · 0.85
isRedoFunction · 0.85
isCopyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected