TanStack
Hotkeys API Reference

useHotkeysContext

ts
function useHotkeysContext(): VueHotkeysContextValue | null;

Defined in: HotkeysProviderContext.ts:217

The nearest context, or null. Outside a component, such as in a bare effectScope, there is no context to read, so this skips inject and its warning.

Returns

VueHotkeysContextValue | null