Hotkeys API Reference

useHotkeysContext

ts
function useHotkeysContext(): HotkeysContextValue | null;

Defined in: HotkeysProviderContext.ts:177

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

HotkeysContextValue | null