diff --git a/krusader/BookMan/krbookmarkhandler.cpp b/krusader/BookMan/krbookmarkhandler.cpp --- a/krusader/BookMan/krbookmarkhandler.cpp +++ b/krusader/BookMan/krbookmarkhandler.cpp @@ -565,7 +565,7 @@ if (act->text().contains('&' + kev->text(), Qt::CaseInsensitive)) { qDebug() << "Bookmark search: hit accelerator key of" << act; _setQuickSearchText(""); - break; + return QObject::eventFilter(obj, ev); } // strip accelerator keys from actions so they don't interfere with the search key press events @@ -600,10 +600,14 @@ } else { firstMatch->activate(QAction::Trigger); } + return true; } else { // if no match is found, firstMatch == nullptr // this is intended as it will unset active item of the menu menu->setActiveAction(firstMatch); + if (firstMatch) { + return true; + } } }