Changeset View
Changeset View
Standalone View
Standalone View
krusader/BookMan/krbookmarkhandler.cpp
Context not available. | |||||
565 | if (act->text().contains('&' + kev->text(), Qt::CaseInsensitive)) { | 565 | if (act->text().contains('&' + kev->text(), Qt::CaseInsensitive)) { | ||
---|---|---|---|---|---|
566 | qDebug() << "Bookmark search: hit accelerator key of" << act; | 566 | qDebug() << "Bookmark search: hit accelerator key of" << act; | ||
567 | _setQuickSearchText(""); | 567 | _setQuickSearchText(""); | ||
568 | break; | 568 | return QObject::eventFilter(obj, ev); | ||
569 | } | 569 | } | ||
570 | 570 | | |||
571 | // strip accelerator keys from actions so they don't interfere with the search key press events | 571 | // strip accelerator keys from actions so they don't interfere with the search key press events | ||
Context not available. | |||||
600 | } else { | 600 | } else { | ||
601 | firstMatch->activate(QAction::Trigger); | 601 | firstMatch->activate(QAction::Trigger); | ||
602 | } | 602 | } | ||
603 | return true; | ||||
603 | } else { | 604 | } else { | ||
604 | // if no match is found, firstMatch == nullptr | 605 | // if no match is found, firstMatch == nullptr | ||
605 | // this is intended as it will unset active item of the menu | 606 | // this is intended as it will unset active item of the menu | ||
606 | menu->setActiveAction(firstMatch); | 607 | menu->setActiveAction(firstMatch); | ||
608 | if (firstMatch) { | ||||
609 | return true; | ||||
610 | } | ||||
607 | } | 611 | } | ||
608 | } | 612 | } | ||
609 | 613 | | |||
Context not available. |