MCPcopy Index your code
hub / github.com/antonmedv/codejar / isUndo

Function isUndo

codejar.ts:495–497  ·  view source on GitHub ↗
(event: KeyboardEvent)

Source from the content-addressed store, hash-verified

493 }
494
495 function isUndo(event: KeyboardEvent) {
496 return isCtrl(event) && !event.shiftKey && getKeyCode(event) === 'Z'
497 }
498
499 function isRedo(event: KeyboardEvent) {
500 return isCtrl(event) && event.shiftKey && getKeyCode(event) === 'Z'

Callers 2

shouldRecordFunction · 0.85
handleUndoRedoFunction · 0.85

Calls 2

isCtrlFunction · 0.85
getKeyCodeFunction · 0.85

Tested by

no test coverage detected