.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the ShortCut.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_ShortCut: ShortCut ======== **Inherits:** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` **Category:** Core Brief Description ----------------- A shortcut for binding input. Member Functions ---------------- +------------------------------+------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`get_as_text` **(** **)** const | +------------------------------+------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_shortcut` **(** :ref:`InputEvent` event **)** const | +------------------------------+------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_valid` **(** **)** const | +------------------------------+------------------------------------------------------------------------------------------------------------+ Member Variables ---------------- .. _class_ShortCut_shortcut: - :ref:`InputEvent` **shortcut** - The Shortcut's :ref:`InputEvent`. Generally the :ref:`InputEvent` is a keyboard key, though it can be any :ref:`InputEvent`. Description ----------- A shortcut for binding input. Shortcuts are commonly used for interacting with a :ref:`Control` element from a :ref:`InputEvent`. Member Function Description --------------------------- .. _class_ShortCut_get_as_text: - :ref:`String` **get_as_text** **(** **)** const Returns the Shortcut's :ref:`InputEvent` as a :ref:`String`. .. _class_ShortCut_is_shortcut: - :ref:`bool` **is_shortcut** **(** :ref:`InputEvent` event **)** const Returns ``true`` if the Shortcut's :ref:`InputEvent` equals ``event``. .. _class_ShortCut_is_valid: - :ref:`bool` **is_valid** **(** **)** const If ``true`` this Shortcut is valid.