Show search bar when toolbar is hidden or overflow

* Fix #505 - always show the search bar when the search keyboard shortcut is pressed. If the toolbar is in overflow, the toolbar will be expanded automatically and search focused. If the toolbar is hidden it will be shown and expanded if necessary. When searching is canceled or the down arrow is pressed (to select the first entry) the toolbar will be set back to it's previous configuration.
This commit is contained in:
Jonathan White 2021-02-21 08:28:10 -05:00
parent e1c8304c4b
commit 8c61a73bb0
9 changed files with 180 additions and 17 deletions

View file

@ -1401,9 +1401,8 @@ void DatabaseWidget::onGroupChanged()
// Intercept group changes if in search mode
if (isSearchActive() && m_searchLimitGroup) {
search(m_lastSearchText);
} else if (isSearchActive()) {
endSearch();
} else {
endSearch();
m_entryView->displayGroup(group);
}