mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Hide Control focus when given via mouse input
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user