Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/hotkeys
/ useHeldKeys
Function
useHeldKeys
packages/react-hotkeys/src/useHeldKeys.ts:26–29 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
24
* ```
25
*/
26
export
function
useHeldKeys(): Array<string> {
27
const
tracker = getKeyStateTracker()
28
return
useSelector(tracker.store, (state) => state.heldKeys)
29
}
Callers
3
App
Function · 0.90
ShortcutListItem
Function · 0.90
ShortcutListItem
Function · 0.90
Calls
1
getKeyStateTracker
Function · 0.90
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…