From 5797c1455475f003f75dbcfe16af0519beccfad8 Mon Sep 17 00:00:00 2001 From: ronso0 Date: Thu, 15 Oct 2020 21:33:38 +0200 Subject: [PATCH] WSearchLineEdit: when focused use [Library],GoToItem to jump to tracks table --- src/library/librarycontrol.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/library/librarycontrol.cpp b/src/library/librarycontrol.cpp index fbe78dadab7..98169df0b79 100644 --- a/src/library/librarycontrol.cpp +++ b/src/library/librarycontrol.cpp @@ -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();