Function shortcutMode

  • An attribute that can be added to a boolean property to toggle a mode via a shortcut. The property can be toggled in two ways: Holding the shortcut will set the property to true until it is released. Pressing the shortcut without holding it will toggle the value.

    Parameters

    Returns AttributeDecorator<Attribute>