]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/search/bar.cpp
search/bar: Use correct parent method in keyPressEvent
[dolphin.git] / src / search / bar.cpp
index 18707ef2363f3f15257a76101cb157770c092024..794274cef25a5ad4ddd612ff0ceda7332db610db 100644 (file)
@@ -275,7 +275,7 @@ void Bar::updateState(const std::shared_ptr<const DolphinQuery> &dolphinQuery)
 
 void Bar::keyPressEvent(QKeyEvent *event)
 {
-    QWidget::keyReleaseEvent(event);
+    QWidget::keyPressEvent(event);
     if (event->key() == Qt::Key_Escape) {
         if (m_searchTermEditor->text().isEmpty()) {
             setVisible(false, WithAnimation);