# useHotkeysContext

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

```ts
function useHotkeysContext(): 
  | HotkeysContextValue<DefaultHotkeysOptions>
  | null;
```

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

Reads the nearest provider, or null outside a provider.

## Returns

  \| `HotkeysContextValue`\<[`DefaultHotkeysOptions`](../interfaces/DefaultHotkeysOptions.md)\>
  \| `null`
