Inherits: Resource < Reference < Object
A shortcut for binding input.
A shortcut for binding input.
Shortcuts are commonly used for interacting with a Control element from a InputEvent.
| InputEvent | shortcut |
| String | get_as_text ( ) const |
| bool | is_shortcut ( InputEvent event ) const |
| bool | is_valid ( ) const |
| Setter | set_shortcut(value) |
| Getter | get_shortcut() |
The shortcut's InputEvent.
Generally the InputEvent is a keyboard key, though it can be any InputEvent.
Returns the shortcut's InputEvent as a String.
Returns true if the shortcut's InputEvent equals event.
If true, this shortcut is valid.
© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/3.2/classes/class_shortcut.html