aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/search_frame.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ui/qt/search_frame.cpp')
-rw-r--r--ui/qt/search_frame.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/ui/qt/search_frame.cpp b/ui/qt/search_frame.cpp
index b1533d4..f63f63f 100644
--- a/ui/qt/search_frame.cpp
+++ b/ui/qt/search_frame.cpp
@@ -134,16 +134,15 @@ void SearchFrame::findFrameWithFilter(QString &filter)
void SearchFrame::keyPressEvent(QKeyEvent *event)
{
- if (wsApp->focusWidget() == sf_ui_->searchLineEdit) {
- if (event->modifiers() == Qt::NoModifier) {
- if (event->key() == Qt::Key_Escape) {
- on_cancelButton_clicked();
- } else if (event->key() == Qt::Key_Enter || event->key() == Qt::Key_Return) {
- on_findButton_clicked();
- }
+ if (event->modifiers() == Qt::NoModifier) {
+ if (event->key() == Qt::Key_Escape) {
+ on_cancelButton_clicked();
+ } else if (event->key() == Qt::Key_Enter || event->key() == Qt::Key_Return) {
+ on_findButton_clicked();
}
- return; // searchLineEdit didn't want it and we don't either.
}
+
+ AccordionFrame::keyPressEvent(event);
}
bool SearchFrame::regexCompile()