You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
Make handling of rename line-edit popups more robust
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user