---
id: "P:cAlgo.API.HotkeyArgs.Modifiers"
kind: "property"
type: "T:cAlgo.API.HotkeyArgs"
url: "https://help.ctrader.com/ctrader-algo/references/Plugin/Hotkeys/HotkeyArgs/Modifiers/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# HotkeyArgs.Modifiers

Member of [HotkeyArgs](https://help.ctrader.com/ctrader-algo/references/Plugin/Hotkeys/HotkeyArgs/index.md).

## Modifiers

Modifiers key that was used with the Key

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Available to plugins only, and plugins cannot run in the CLI.
- Cloud: Available to plugins only, and plugins cannot run in the cloud.

C#:

```csharp
public ModifierKeys Modifiers {get;}
```

Python:

```python
hotkeyArgs.Modifiers: ModifierKeys
```

### Returns

`ModifierKeys` — 

Available since cAlgo.API 5.4.

### Examples

C#:

```csharp
Hotkeys.TryAdd(Key.B, ModifierKeys.Alt, args => Print("Modifiers: {0}", args.Modifiers));
```

Python:

```python
from System import Action
api.Hotkeys.TryAdd(Key.B, ModifierKeys.Alt, Action[HotkeyArgs](lambda args: api.Print(f"Modifiers: {args.Modifiers}")))
```

