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

Constructors

    public ShortCut()

Properties

    public InputEvent Shortcut { get; set; }

The shortcut’s InputEvent.

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

Methods

    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

Tags: