1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00

Merge pull request #91112 from RandomShaper/fix_double_confirm

Avoid double handling of rename in the file system dock
This commit is contained in:
Rémi Verschelde
2024-05-07 16:49:34 +02:00
4 changed files with 20 additions and 6 deletions

View File

@@ -138,9 +138,7 @@ String FileSystemList::get_edit_text() {
}
void FileSystemList::_text_editor_popup_modal_close() {
if (Input::get_singleton()->is_key_pressed(Key::ESCAPE) ||
Input::get_singleton()->is_key_pressed(Key::KP_ENTER) ||
Input::get_singleton()->is_key_pressed(Key::ENTER)) {
if (popup_editor->get_hide_reason() == Popup::HIDE_REASON_CANCELED) {
return;
}