mainToolBar->setVisible(!enable);
statusBar()->setVisible(!enable);
+ // ensure focus does not end up to the search box
+ // as it would steal the Space shortcut
+ toolbarSearch->setEnabled(!enable);
+
if (enable) {
stopAct->setShortcut(QString(""));
QList<QKeySequence> shortcuts;
} 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();
}
}