Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
_gg
Method · 0.95
_shiftG
Method · 0.95
_dd
Method · 0.95
_yy
Method · 0.95
_dw
Method · 0.95
_ciw
Method · 0.95
_konami
Method · 0.95
_sideToSide
Method · 0.95
_hello
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected