Hide Control focus when given via mouse input

This commit is contained in:
Michael Alexsander 2025-09-03 20:39:18 -03:00
parent 2753d333f6
commit aeb3a45c97
No known key found for this signature in database
GPG key ID: A9C91EE110F4EABA
53 changed files with 229 additions and 105 deletions

View file

@ -543,7 +543,7 @@ void TabBar::_notification(int p_what) {
if (current >= offset && current <= max_drawn_tab && !tabs[current].hidden) {
Ref<StyleBox> sb = tabs[current].disabled ? theme_cache.tab_disabled_style : theme_cache.tab_selected_style;
_draw_tab(sb, theme_cache.font_selected_color, current, rtl ? (size.width - tabs[current].ofs_cache - tabs[current].size_cache) : tabs[current].ofs_cache, has_focus());
_draw_tab(sb, theme_cache.font_selected_color, current, rtl ? (size.width - tabs[current].ofs_cache - tabs[current].size_cache) : tabs[current].ofs_cache, has_focus(true));
}
if (buttons_visible) {