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

Method addToHistory

examples/lit/hotkey-sequence/src/app.ts:36–39  ·  view source on GitHub ↗
(action: string)

Source from the content-addressed store, hash-verified

34 @state() private history: Array<string> = []
35
36 private addToHistory(action: string) {
37 this.lastSequence = action
38 this.history = [...this.history.slice(-9), action]
39 }
40
41 render() {
42 return html`

Callers 9

_ggMethod · 0.95
_shiftGMethod · 0.95
_ddMethod · 0.95
_yyMethod · 0.95
_dwMethod · 0.95
_ciwMethod · 0.95
_konamiMethod · 0.95
_sideToSideMethod · 0.95
_helloMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected