# useHotkeysContext

<!-- DO NOT EDIT: this page is autogenerated from the type comments -->

```ts
function useHotkeysContext(): HotkeysContextValue | null;
```

Defined in: [HotkeysProvider.ts:82](https://github.com/TanStack/hotkeys/blob/main/packages/octane-hotkeys/src/HotkeysProvider.ts#L82)

Reads the nearest provider, or null outside a provider.

## Returns

`HotkeysContextValue` \| `null`
