From 4bcdbf1280c1e632f103de11788e0d8a931b0712 Mon Sep 17 00:00:00 2001 From: Yuri Sizov Date: Sat, 17 Jul 2021 13:20:10 +0300 Subject: Fix focus behavior in the Add Item Type dialog of the Theme editor --- editor/plugins/theme_editor_plugin.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/editor/plugins/theme_editor_plugin.cpp b/editor/plugins/theme_editor_plugin.cpp index 2767d11229..b628bc1a04 100644 --- a/editor/plugins/theme_editor_plugin.cpp +++ b/editor/plugins/theme_editor_plugin.cpp @@ -2015,6 +2015,12 @@ void ThemeTypeDialog::_notification(int p_what) { case NOTIFICATION_THEME_CHANGED: { _update_add_type_options(); } break; + + case NOTIFICATION_VISIBILITY_CHANGED: { + if (is_visible()) { + add_type_filter->grab_focus(); + } + } break; } } -- cgit v1.2.3