1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-17 12:02:48 +01:00

Clear global search box when pressing Escape, like in other search boxes

(cherry picked from commit f89fb0db3a)
This commit is contained in:
Arnaud Bienner 2011-12-05 21:25:11 +01:00 committed by David Sansome
parent 777caf7757
commit 8441c565c7

View File

@ -381,6 +381,10 @@ bool GlobalSearchWidget::EventFilterSearchWidget(QObject* o, QEvent* e) {
RepositionPopup();
return true;
case Qt::Key_Escape:
ui_->search->LineEditInterface::clear();
return true;
default:
break;
}