()
| 180 | } |
| 181 | |
| 182 | const handleCreateNew = () => { |
| 183 | const newShortcut: Shortcut = { |
| 184 | id: createId(), |
| 185 | name: '', |
| 186 | description: '', |
| 187 | hotkey: '', |
| 188 | } |
| 189 | setShortcuts((prev) => [...prev, newShortcut]) |
| 190 | setEditingId(newShortcut.id) |
| 191 | setDraftName('') |
| 192 | setDraftDescription('') |
| 193 | recorder.startRecording() |
| 194 | } |
| 195 | |
| 196 | return ( |
| 197 | <div class="app"> |
nothing calls this directly
no test coverage detected
searching dependent graphs…