Skip to content

Commit

Permalink
WSearchLineEdit: when focused use [Library],GoToItem to jump to track…
Browse files Browse the repository at this point in the history
…s table
  • Loading branch information
ronso0 committed Oct 15, 2020
1 parent 118f4e5 commit 5797c14
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/library/librarycontrol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,11 @@ void LibraryControl::slotGoToItem(double v) {
return slotLoadSelectedIntoFirstStopped(v);
}

// If searchbox has focus jump to the tracks table
if (m_pSearchbox->hasFocus()) {
return setLibraryFocus();
}

// Clear the search if the searchbox has focus
emit clearSearchIfClearButtonHasFocus();

Expand Down

0 comments on commit 5797c14

Please sign in to comment.