diff options
author | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2024-05-01 13:39:54 +0200 |
---|---|---|
committer | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2024-05-07 14:29:35 +0200 |
commit | eb2bd41fb83cf22397a9b576d0e6b3a641eb2d03 (patch) | |
tree | ef7a9d832f82d39ff06e34304010494011010b40 /editor/filesystem_dock.cpp | |
parent | 259d576f6ead7decf74bb60126130f88af05f1bb (diff) | |
download | redot-engine-eb2bd41fb83cf22397a9b576d0e6b3a641eb2d03.tar.gz |
Make handling of rename line-edit popups more robust
Diffstat (limited to 'editor/filesystem_dock.cpp')
-rw-r--r-- | editor/filesystem_dock.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp index ea76c20a0f..ef77e5340b 100644 --- a/editor/filesystem_dock.cpp +++ b/editor/filesystem_dock.cpp @@ -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; } |