mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-17 12:02:48 +01:00
Display global search results when focusing on global search box only if reason is 'mouseFocus'
This commit is contained in:
parent
d01badc9d9
commit
0322c2bbf1
@ -367,9 +367,13 @@ bool GlobalSearchWidget::EventFilterSearchWidget(QObject* o, QEvent* e) {
|
||||
return true;
|
||||
break;
|
||||
|
||||
case QEvent::FocusIn:
|
||||
RepositionPopup();
|
||||
case QEvent::FocusIn: {
|
||||
QFocusEvent* fe = static_cast<QFocusEvent*>(e);
|
||||
if (fe->reason() == Qt::MouseFocusReason) {
|
||||
RepositionPopup();
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case QEvent::KeyPress: {
|
||||
QKeyEvent* ke = static_cast<QKeyEvent*>(e);
|
||||
|
Loading…
Reference in New Issue
Block a user