diff options
author | Yuri Sizov <yuris@humnom.net> | 2021-07-17 13:20:10 +0300 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2021-07-17 13:20:10 +0300 |
commit | 4bcdbf1280c1e632f103de11788e0d8a931b0712 (patch) | |
tree | 5d3f4dd355f2b83e0fee26f07457f7e0df75d517 /editor/plugins | |
parent | 76b003082141317e6f511487a5c5137226af1f27 (diff) |
Fix focus behavior in the Add Item Type dialog of the Theme editor
Diffstat (limited to 'editor/plugins')
-rw-r--r-- | editor/plugins/theme_editor_plugin.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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; } } |