Hotkeys
Summary
Provides access to Hotkeys API for plugins.
Signature
1 | |
Namespace
cAlgo.API
Examples
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | |
Methods
TryAdd (2)
TryAdd (1 of 2)
Summary
Adds a new hotkey.
Signature
1 | |
Parameters
| Name | Type | Description |
|---|---|---|
| key | Key | Main Key |
| handler | Action | Handler action |
Return Value
bool
TryAdd (2 of 2)
Summary
Adds a new hotkey.
Signature
1 | |
Parameters
| Name | Type | Description |
|---|---|---|
| key | Key | Main Key |
| modifiers | ModifierKeys | The modifier key |
| handler | Action | Handler action |
Return Value
bool
Remove (2)
Remove (1 of 2)
Summary
Removes an hotkey.
Signature
1 | |
Parameters
| Name | Type | Description |
|---|---|---|
| key | Key | Main Key |
Return Value
bool
Remove (2 of 2)
Summary
Removes an hotkey.
Signature
1 | |
Parameters
| Name | Type | Description |
|---|---|---|
| key | Key | Main Key |
| modifiers | ModifierKeys | The modifier key |
Return Value
bool
Clear
Summary
Clears all added hotkeys.
Signature
1 | |
Return Value
void