From 0049a5ebb2b5bdb8feb7637f9a7acffc7b3cdf76 Mon Sep 17 00:00:00 2001 From: Leon Richardt Date: Sat, 24 Oct 2020 10:50:14 +0200 Subject: [PATCH] Fix tabbing in Quick Switcher (#2065) It was broken in f7237dc due to the migration to the GenericListView approach --- CHANGELOG.md | 1 + src/widgets/dialogs/switcher/QuickSwitcherPopup.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a3593c519..0009ff0c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,7 @@ - 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 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 diff --git a/src/widgets/dialogs/switcher/QuickSwitcherPopup.cpp b/src/widgets/dialogs/switcher/QuickSwitcherPopup.cpp index 09a968e21..9d8c15610 100644 --- a/src/widgets/dialogs/switcher/QuickSwitcherPopup.cpp +++ b/src/widgets/dialogs/switcher/QuickSwitcherPopup.cpp @@ -65,8 +65,6 @@ void QuickSwitcherPopup::initWidgets() lineEdit->setPlaceholderText("Jump to a channel or open a new one"); QObject::connect(this->ui_.searchEdit, &QLineEdit::textChanged, this, &QuickSwitcherPopup::updateSuggestions); - - this->ui_.searchEdit->installEventFilter(this); } { @@ -76,6 +74,8 @@ void QuickSwitcherPopup::initWidgets() QObject::connect(listView.getElement(), &GenericListView::closeRequested, this, [this] { this->close(); }); + + this->ui_.searchEdit->installEventFilter(listView.getElement()); } }