Fix crash caused by input configuration dialog

This commit is contained in:
Marco Zepeda
2026-03-29 04:14:21 -04:00
parent 2af785641a
commit f69370b260
@@ -49,7 +49,7 @@ void InputEventConfigurationDialog::_set_event(const Ref<InputEvent> &p_event, c
Ref<InputEventKey> current_key = p_event;
// Without this is_visible() check, the gui would not open if the already bound
// keybind was escape.
if (is_visible()) {
if (current_key.is_valid() && is_visible()) {
if (current_key->get_physical_keycode() == Key::ENTER) {
_ok_pressed();
return;