# AppHotkey

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

Defined in: [app-hotkeys.ts:94](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L94)

A declared app hotkey. It never holds a callback: register it with
`useHotkey(appHotkey, callback)` or the equivalent adapter API.

`TDefault` is the kind of the declared default (`HotkeyChord`,
`HotkeySequence`, `PlatformHotkeys` of either, or `null`). Adapters use it
to type kind-specific options.

## Type Parameters

### TId

`TId` *extends* `string` = `string`

### TDefault

`TDefault` *extends* [`AppHotkeyBinding`](../type-aliases/AppHotkeyBinding.md) = [`AppHotkeyBinding`](../type-aliases/AppHotkeyBinding.md)

## Properties

### ~appHotkey

```ts
readonly ~appHotkey: true;
```

Defined in: [app-hotkeys.ts:99](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L99)

Brand that distinguishes app hotkeys from raw hotkey objects.

***

### defaultHotkey

```ts
readonly defaultHotkey: TDefault;
```

Defined in: [app-hotkeys.ts:108](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L108)

Hotkey declared in `defineAppHotkeys`.

***

### hotkey

```ts
readonly hotkey: AppHotkeyBinding;
```

Defined in: [app-hotkeys.ts:106](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L106)

Effective hotkey: the user's custom hotkey, or the default. `null` means
unbound. A default declared per platform stays an object here.

***

### id

```ts
readonly id: TId;
```

Defined in: [app-hotkeys.ts:101](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L101)

Stable id. Saved custom hotkeys are keyed by this value.

***

### meta?

```ts
readonly optional meta?: HotkeyMeta;
```

Defined in: [app-hotkeys.ts:109](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L109)

***

### options?

```ts
readonly optional options?: AppHotkeyOptions;
```

Defined in: [app-hotkeys.ts:111](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L111)

***

### scope?

```ts
readonly optional scope?: string;
```

Defined in: [app-hotkeys.ts:110](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/app-hotkeys.ts#L110)
