Clear global search box when pressing Escape, like in other search boxes
(cherry picked from commit f89fb0db3aca29b82508bc817a5350fa70c4dcb0)
This commit is contained in:
parent
777caf7757
commit
8441c565c7
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user