From 860cdbe9d5fe9750014c6aa2e89cd5375f03586a Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Wed, 1 Jul 2009 18:34:09 +0200 Subject: [PATCH] ensure focus does not end up to the search box as it would steal the Space shortcut --- src/MainWindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 3774bdc..e3e3373 100755 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -513,6 +513,10 @@ void MainWindow::compactView(bool enable) { } else { compactViewAct->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Return)); stopAct->setShortcut(QKeySequence(Qt::Key_Escape)); + + // ensure focus does not end up to the search box + // as it would steal the Space shortcut + toolbarSearch->clearFocus(); } } -- 2.39.5