summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-07-17 14:39:13 +0200
committerGitHub <noreply@github.com>2021-07-17 14:39:13 +0200
commit7537875d862837d43e50be2cc14de9d8db8f5fe3 (patch)
tree5d3f4dd355f2b83e0fee26f07457f7e0df75d517
parent76b003082141317e6f511487a5c5137226af1f27 (diff)
parent4bcdbf1280c1e632f103de11788e0d8a931b0712 (diff)
Merge pull request #50547 from pycbouh/editor-theme-eagerly-grab-focus-on-popup-and-never-let-go
Fix focus behavior in the Add Item Type dialog of the Theme editor
-rw-r--r--editor/plugins/theme_editor_plugin.cpp6
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;
}
}