# useHotkeysContext

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

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

Reads the nearest provider, or null outside a provider.

## Returns

`HotkeysContextValue` \| `null`
