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.


Stringget_as_text ( ) const
boolis_shortcut ( InputEvent event ) const
boolis_valid ( ) const

Property Descriptions


The shortcut’s InputEvent.

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

Method Descriptions

Returns the shortcut’s InputEvent as a String.

Returns true if the shortcut’s InputEvent equals event.

  • bool is_valid ( ) const

If true, this shortcut is valid.

Doc ID missing

Disclaimer: This page has been automaticaly and directly extracted from the official Godot Docs website, the 1970-01-01 at 00:00:00. It’s the English Stable version because it’s what most Godot users should use. The Copyright owners are Juan Linietsky, Ariel Manzur and the Godot community. CC-BY 3.0. Thanks for your patience and generosity.