A shortcut for binding input.
    public class ShortCut : Resource

A shortcut for binding input.

Shortcuts are commonly used for interacting with a Control element from a InputEvent.

Inheritance Chain


    public ShortCut()


    public InputEvent Shortcut { get; set; }

The Shortcut’s InputEvent.

Generally the InputEvent is a keyboard key, though it can be any InputEvent.


    public string GetAsText()

Returns the Shortcut’s InputEvent as a String.

    public InputEvent GetShortcut()

Getter for Shortcut

    public bool IsShortcut(InputEvent @event)

Returns true if the Shortcut’s InputEvent equals event.

    public bool IsValid()

If true this Shortcut is valid.

    public void SetShortcut(InputEvent @event)

Setter for Shortcut