HotkeyArgs.Modifiers
property · HotkeyArgs · cAlgo.API Since 5.4
DesktopCLICloud
Modifiers key that was used with the Key
Environment behaviour
CLI — not supported. Available to plugins only, and plugins cannot run in the CLI.
Cloud — not supported. Available to plugins only, and plugins cannot run in the cloud.
Definition
public ModifierKeys Modifiers {get;}
hotkeyArgs.Modifiers: ModifierKeys
Returns ModifierKeys
Examples
Hotkeys.TryAdd(Key.B, ModifierKeys.Alt, args => Print("Modifiers: {0}", args.Modifiers));
from System import Action
api.Hotkeys.TryAdd(Key.B, ModifierKeys.Alt, Action[HotkeyArgs](lambda args: api.Print(f"Modifiers: {args.Modifiers}")))