Fix tabbing in Quick Switcher (#2065)

It was broken in f7237dc due to the migration to the GenericListView approach
This commit is contained in:
Leon Richardt 2020-10-24 10:50:14 +02:00 committed by GitHub
parent 11525e626a
commit 0049a5ebb2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -35,6 +35,7 @@
- Bugfix: Fixed timestamps missing on channel point redemption messages (#1943) - Bugfix: Fixed timestamps missing on channel point redemption messages (#1943)
- Bugfix: Fixed tooltip didn't show in `EmotePopup` depending on the `Link preview` setting enabled or no (#2008) - Bugfix: Fixed tooltip didn't show in `EmotePopup` depending on the `Link preview` setting enabled or no (#2008)
- Bugfix: Fixed Stream thumbnail not updating after using the "Change channel" feature (#2074, #2080) - Bugfix: Fixed Stream thumbnail not updating after using the "Change channel" feature (#2074, #2080)
- Bugfix: Fix Tab key not working in the Ctrl+K Quick Switcher (#2065)
## 2.2.0 ## 2.2.0

View file

@ -65,8 +65,6 @@ void QuickSwitcherPopup::initWidgets()
lineEdit->setPlaceholderText("Jump to a channel or open a new one"); lineEdit->setPlaceholderText("Jump to a channel or open a new one");
QObject::connect(this->ui_.searchEdit, &QLineEdit::textChanged, this, QObject::connect(this->ui_.searchEdit, &QLineEdit::textChanged, this,
&QuickSwitcherPopup::updateSuggestions); &QuickSwitcherPopup::updateSuggestions);
this->ui_.searchEdit->installEventFilter(this);
} }
{ {
@ -76,6 +74,8 @@ void QuickSwitcherPopup::initWidgets()
QObject::connect(listView.getElement(), QObject::connect(listView.getElement(),
&GenericListView::closeRequested, this, &GenericListView::closeRequested, this,
[this] { this->close(); }); [this] { this->close(); });
this->ui_.searchEdit->installEventFilter(listView.getElement());
} }
} }