Skip to content

Commit

Permalink
Widgets: Keyboard focus in BrowserWidget
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Sep 1, 2019
1 parent deaa3e0 commit 235d011
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doomsday/libs/gui/src/widgets/browserwidget.cpp
Expand Up @@ -152,7 +152,7 @@ DE_GUI_PIMPL(BrowserWidget)

if (i == path.segmentCount() - 1)
{
button.setTextColor("accent");
button.setTextColor("accent");
}

const Path buttonPath = path.subPath({0, i + 1});
Expand All @@ -166,6 +166,8 @@ DE_GUI_PIMPL(BrowserWidget)

pathFlow->append(button);
}

if (hasRoot()) root().setFocus(pathFlow->widgets().back());
}

void resetPathButtonColors()
Expand Down

0 comments on commit 235d011

Please sign in to comment.