MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / toggleCheckbox

Function toggleCheckbox

packages/app-core/src/components/DatabaseTableView.tsx:209–210  ·  view source on GitHub ↗
(row: DbRow, field: DbField)

Source from the content-addressed store, hash-verified

207 return row && field ? { row, field } : null
208 }
209 const toggleCheckbox = (row: DbRow, field: DbField): void =>
210 commitCell(row.id, field, isCheckboxTrue(row.cells[field.id] ?? '') ? 'false' : 'true')
211
212 // Reset pending multi-key sequences when a different key arrives.
213 if (gPending.current && e.key !== 'g') gPending.current = false

Callers 1

onGridKeyDownFunction · 0.85

Calls 2

commitCellFunction · 0.85
isCheckboxTrueFunction · 0.85

Tested by

no test coverage detected