Make handling of rename line-edit popups more robust
This commit is contained in:
@ -3152,9 +3152,7 @@ int Tree::propagate_mouse_event(const Point2i &p_pos, int x_ofs, int y_ofs, int
|
||||
}
|
||||
|
||||
void Tree::_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