diff --git a/CHANGELOG.md b/CHANGELOG.md index abac2cd3..da404388 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ - Bugfix: `Login expired` message no longer highlights all tabs. (#2735) - Bugfix: Fix a deadlock that would occur during user badge loading. (#1704, #2756) - Bugfix: Tabbing in `Select a channel to open` is now consistent. (#1797) +- Bugfix: Fix Ctrl + Backspace not closing colon emote picker. (#2780) - Bugfix: Approving/denying AutoMod messages works again. (#2779) - Dev: Migrated AutoMod approve/deny endpoints to Helix. (#2779) diff --git a/src/widgets/splits/SplitInput.cpp b/src/widgets/splits/SplitInput.cpp index b01c2910..f9fbb6f5 100644 --- a/src/widgets/splits/SplitInput.cpp +++ b/src/widgets/splits/SplitInput.cpp @@ -86,6 +86,8 @@ void SplitInput::initLayout() app->fonts->getFont(FontStyle::ChatMedium, this->scale())); QObject::connect(this->ui_.textEdit, &QTextEdit::cursorPositionChanged, this, &SplitInput::onCursorPositionChanged); + QObject::connect(this->ui_.textEdit, &QTextEdit::textChanged, this, + &SplitInput::onTextChanged); this->managedConnections_.push_back(app->fonts->fontChanged.connect([=]() { this->ui_.textEdit->setFont( @@ -447,6 +449,11 @@ void SplitInput::installKeyPressedEvent() }); } +void SplitInput::onTextChanged() +{ + this->updateColonMenu(); +} + void SplitInput::onCursorPositionChanged() { this->updateColonMenu(); diff --git a/src/widgets/splits/SplitInput.hpp b/src/widgets/splits/SplitInput.hpp index 00b22ebc..7e97aa6e 100644 --- a/src/widgets/splits/SplitInput.hpp +++ b/src/widgets/splits/SplitInput.hpp @@ -46,6 +46,7 @@ private: void initLayout(); void installKeyPressedEvent(); void onCursorPositionChanged(); + void onTextChanged(); void updateEmoteButton(); void updateColonMenu(); void showColonMenu(const QString &text);