Install Asset
Install via Godot
To maintain one source of truth, Godot Asset Library is just a mirror of the old asset library so you can download directly on Godot via the integrated asset library browser
![InputEventKey Grabber thumbnail image](https://img.godotassetlibrary.com/Pgb6Oqya5wWI-zoozkrgeI0rf44hqlVYkocZuupmVs0/rs:fit:640:360:0/g:no/aHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL2dpbHpvaWRlL2dvZG90LWlucHV0LWtleS1ldmVudC1ncmFiYmVyL21haW4vc2NyZWVuc2hvdHMvaW5wdXRldmVudGtleS5wbmc.webp)
![InputEventKey Grabber thumbnail image](https://img.godotassetlibrary.com/Cqm8aGtU_dO6MX0bt0cn8Zt7rlyccmy5a61LtTMeG9U/rs:fit:640:360:0/g:no/aHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL2dpbHpvaWRlL2dvZG90LWlucHV0LWtleS1ldmVudC1ncmFiYmVyL21haW4vc2NyZWVuc2hvdHMvc2hvcnRjdXQucG5n.webp)
![InputEventKey Grabber hero image](https://img.godotassetlibrary.com/eyXrzrOgzyi9_sEcwXxEG6VLvjfjRM7wnwUCWb2ikag/rs:fit:1920:1080:0/g:no/aHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL2dpbHpvaWRlL2dvZG90LWlucHV0LWtleS1ldmVudC1ncmFiYmVyL21haW4vc2NyZWVuc2hvdHMvaW5wdXRldmVudGtleS5wbmc.webp)
Quick Information
![InputEventKey Grabber icon image](https://img.godotassetlibrary.com/-bpbSz5nSmMfDpGxpNfFiKeJ2A71frBSpub2AOxNhQ4/rs:fit:50:50:0/g:no/aHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL2dpbHpvaWRlL2dvZG90LWlucHV0LWtleS1ldmVudC1ncmFiYmVyL21haW4vaWNvbi5wbmc.webp)
A button that grabs key events and populate an InputEventKey instance.Comes with a property editor for easy setup of InputEventKey Resources in editor, great for creating ShortCuts.
InputEventKey Grabber
A button that grabs key events and populate an InputEventKey instance for Godot.
Comes with a property editor for easy setup of InputEventKey Resources in editor, great for creating ShortCut resources.
Check out the scene at the addons/input_event_key_grabber/samples folder for a complete usage example.
Installing
Copy the addons/input_event_key_grabber folder into your project or import it from Godot Asset Library.
Alternatively, if you don't need the editor plugin, just copy the addons/input_event_key_grabber/input_event_key_grabber_button.gd file into your project.
API
InputEventKeyGrabberButton (addons/input_event_key_grabber/input_event_key_grabber_button.gd)
signal event_updated(event: InputEventKey)
- Emitted when a new key is set either by user input or when setting
event
property.
export(String) var press_key_text = "Press key combo..."
- Text shown when key grabber is focused, hinting it is grabbing keys.
export(bool) var auto_release_focus = true
- If true, key grabber gives up focus when a key that is not a modifier (control, alt, shift, meta, command) is pressed. If its focus_next points to another Control, focus will be passed on to it, otherwise it just releases focus.
var event: InputEventKey
- InputEventKey property, changes every time user inputs a new key combo. Setting it manually updates the shown text.
A button that grabs key events and populate an InputEventKey instance.
Comes with a property editor for easy setup of InputEventKey Resources in editor, great for creating ShortCuts.
Reviews
Quick Information
![InputEventKey Grabber icon image](https://img.godotassetlibrary.com/-bpbSz5nSmMfDpGxpNfFiKeJ2A71frBSpub2AOxNhQ4/rs:fit:50:50:0/g:no/aHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL2dpbHpvaWRlL2dvZG90LWlucHV0LWtleS1ldmVudC1ncmFiYmVyL21haW4vaWNvbi5wbmc.webp)
A button that grabs key events and populate an InputEventKey instance.Comes with a property editor for easy setup of InputEventKey Resources in editor, great for creating ShortCuts.