Fix input map shortcuts incorrectly edited on cancel.

This commit is contained in:
bruvzg 2024-04-18 08:22:39 +03:00
parent 4b7776e31b
commit 68e4ead9ad
No known key found for this signature in database
GPG Key ID: 7960FCF39844EC38
1 changed files with 1 additions and 1 deletions

View File

@ -587,7 +587,7 @@ void InputEventConfigurationDialog::_notification(int p_what) {
void InputEventConfigurationDialog::popup_and_configure(const Ref<InputEvent> &p_event, const String &p_current_action_name) {
if (p_event.is_valid()) {
_set_event(p_event->duplicate(), p_event);
_set_event(p_event->duplicate(), p_event->duplicate());
} else {
// Clear Event
_set_event(Ref<InputEvent>(), Ref<InputEvent>());