# AngularHotkeyRecorder

Defined in: [injectHotkeyRecorder.ts:22](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/injectHotkeyRecorder.ts#L22)

## Type Parameters

### THotkey

`THotkey` *extends* `Hotkey` = `Hotkey`

## Properties

### cancelRecording

```ts
readonly cancelRecording: () => void;
```

Defined in: [injectHotkeyRecorder.ts:34](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/injectHotkeyRecorder.ts#L34)

Cancel recording and call onCancel

#### Returns

`void`

***

### commitRecording

```ts
readonly commitRecording: () => void;
```

Defined in: [injectHotkeyRecorder.ts:36](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/injectHotkeyRecorder.ts#L36)

Commit the recorded steps now (multi-step recordings)

#### Returns

`void`

***

### isRecording

```ts
readonly isRecording: () => boolean;
```

Defined in: [injectHotkeyRecorder.ts:24](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/injectHotkeyRecorder.ts#L24)

Whether recording is currently active

#### Returns

`boolean`

***

### recordedHotkey

```ts
readonly recordedHotkey: () => THotkey | null;
```

Defined in: [injectHotkeyRecorder.ts:28](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/injectHotkeyRecorder.ts#L28)

The last committed hotkey

#### Returns

`THotkey` \| `null`

***

### startRecording

```ts
readonly startRecording: () => void;
```

Defined in: [injectHotkeyRecorder.ts:30](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/injectHotkeyRecorder.ts#L30)

Start recording a new hotkey

#### Returns

`void`

***

### steps

```ts
readonly steps: () => HotkeySequence;
```

Defined in: [injectHotkeyRecorder.ts:26](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/injectHotkeyRecorder.ts#L26)

Chords recorded so far in a multi-step recording (for live preview)

#### Returns

`HotkeySequence`

***

### stopRecording

```ts
readonly stopRecording: () => void;
```

Defined in: [injectHotkeyRecorder.ts:32](https://github.com/TanStack/hotkeys/blob/main/packages/angular-hotkeys/src/injectHotkeyRecorder.ts#L32)

Stop recording without calling onCancel

#### Returns

`void`
