# AdapterHotkeyDefinitionInput

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

Defined in: [adapter.ts:292](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L292)

What an adapter's `defineHotkey` takes: one hotkey for an API such as
`useHotkeys`, checked as the adapter's hotkey function checks its
arguments. The callback context and the options follow the kind of the
hotkey. Where `T` is a wrapper's type parameter, the hotkey is not checked
and the options are the ones every kind shares.

## Type Parameters

### T

`T` *extends* [`AdapterHotkeyInput`](../type-aliases/AdapterHotkeyInput.md)

### TTarget

`TTarget`

## Properties

### callback

```ts
callback: HotkeyCallback<IfTypeParameter<T, HotkeyCallbackContext, AdapterCallbackContextFor<T>>>;
```

Defined in: [adapter.ts:303](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L303)

The function to call when the hotkey is pressed

***

### hotkey

```ts
hotkey: IfTypeParameter<T, AdapterWrapperHotkey, KnownHotkey<T, T | null | undefined>>;
```

Defined in: [adapter.ts:297](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L297)

A chord, a sequence, a hotkey object, or an app hotkey

***

### options?

```ts
optional options?: IfTypeParameter<T, AdapterHotkeyOptions<TTarget>, [T] extends [AppHotkey<string, AppHotkeyBinding>] ? AdapterAppHotkeyOptions<Extract<T, AppHotkey<string, AppHotkeyBinding>>, TTarget> : AdapterOptionsFor<T, TTarget>>;
```

Defined in: [adapter.ts:307](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L307)

Per-hotkey options (merged on top of common options)
