Fix crash caused by input configuration dialog
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user