InputEventShortcut
Trigger event referencing one specific Shortcut resource.
Assign Shortcut before use. That resource recognizes the trigger by identity even without physical bindings. Two distinct Shortcuts with equal Events do not represent the same trigger.
A new InputEventShortcut has pressed=true, but construction neither sends it to Input/GUI nor executes a command. Do not use AsText without an assigned resource. Do not place the trigger in Shortcut.Events. Reference identity, Changed, initial state and matching were tested; actual GUI routing was not accepted.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
InputEventShortcutConstructor
public InputEventShortcut();Creates a shortcut trigger with IsPressed()==true and no assigned Shortcut. Assign the resource before use; AsText without it produces native diagnostics and "None". Construction does not send it to the GUI.
Properties1
ShortcutProperty
public Shortcut Shortcut { get; set; }Reference to the Shortcut that recognizes this trigger by identity. Assignment shares the resource and emits Changed. Two different Shortcuts with equal Events are not interchangeable for this trigger. Do not put this event inside a Shortcut Events array.
Methods2
GetShortcutShortcut
public Shortcut GetShortcut();Reads the same reference rather than a Shortcut copy. A new event has no resource. Do not dispose a borrowed wrapper while owners still need it.
ShortcutShared Shortcut, or no assigned resource.
SetShortcutvoid
public void SetShortcut(Shortcut shortcut);Assigns a shared Shortcut reference and emits Changed. Invokes no command, assigns no physical key and does not automatically bind a control.
| Name | Type | Default |
|---|---|---|
shortcut | Shortcut | — |
shortcutShared Shortcut reference; resource identity matters to a trigger.