fix: tabs group focus issues

This commit is contained in:
Raphael Coeffic
2022-06-11 15:38:08 +02:00
committed by Raphael Coeffic
parent 10d200ef43
commit 84a45af2b2
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -198,8 +198,7 @@ void TabsGroup::setVisibleTab(PageTab* tab)
auto form = new FormWindow(&body, rect_t{0, 0, body.width(), body.height()},
FORM_FORWARD_FOCUS);
tab->build(form);
if (!focusWindow) setFocus(SET_FOCUS_DEFAULT);
form->setFocus();
header.setTitle(tab->title.c_str());
invalidate();