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

Function handleCreateNew

examples/react/useHotkeyRecorder/src/index.tsx:177–189  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

175 }
176
177 const handleCreateNew = () => {
178 const newShortcut: Shortcut = {
179 id: createId(),
180 name: '',
181 description: '',
182 hotkey: '',
183 }
184 setShortcuts((prev) => [...prev, newShortcut])
185 setEditingId(newShortcut.id)
186 setDraftName('')
187 setDraftDescription('')
188 recorder.startRecording()
189 }
190
191 return (
192 <div className="app">

Callers

nothing calls this directly

Calls 2

createIdFunction · 0.70
startRecordingMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…