HotkeyArgs.Key
property · HotkeyArgs · cAlgo.API Since 5.4
DesktopCLICloud
Keyboard 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 Key Key {get;}
hotkeyArgs.Key: Key
Returns Key
Examples
Hotkeys.TryAdd(Key.F2, args => Print("Key pressed: {0}", args.Key));
from System import Action
api.Hotkeys.TryAdd(Key.F2, Action[HotkeyArgs](lambda args: api.Print(f"Key pressed: {args.Key}")))