MCPcopy Create free account
hub / github.com/TanStack/hotkeys / handleEdit

Function handleEdit

examples/react/useHotkeyRecorder/src/index.tsx:144–151  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

142 )
143
144 const handleEdit = (id: string) => {
145 const shortcut = shortcuts.find((s) => s.id === id)
146 if (!shortcut) return
147 setEditingId(id)
148 setDraftName(shortcut.name)
149 setDraftDescription(shortcut.description)
150 recorder.startRecording()
151 }
152
153 const handleSaveEditing = () => {
154 if (editingId) {

Callers 1

AppFunction · 0.70

Calls 1

startRecordingMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…