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

Method _handleCreateNew

examples/lit/hotkey-sequence-recorder/src/app.ts:227–240  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

225 }
226
227 private _handleCreateNew(): void {
228 const newShortcut: Shortcut = {
229 id: createId(),
230 name: '',
231 description: '',
232 sequence: [],
233 }
234 this._shortcuts = [...this._shortcuts, newShortcut]
235 this._editingId = newShortcut.id
236 this._draftName = ''
237 this._draftDescription = ''
238 this._unregisterAll()
239 this.recorder.startRecording()
240 }
241
242 render() {
243 return html`

Callers 1

renderMethod · 0.95

Calls 3

_unregisterAllMethod · 0.95
createIdFunction · 0.70
startRecordingMethod · 0.45

Tested by

no test coverage detected