TanStack
Hotkeys API Reference

injectHotkeysContext

ts
function injectHotkeysContext(): HotkeysContextValue;

Defined in: hotkeys-provider.ts:273

Returns the nearest provider's context. Injecting it activates that provider's scope.

Returns

HotkeysContextValue