()
| 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"> |
nothing calls this directly
no test coverage detected
searching dependent graphs…