Fix word backspacing not closing/updating colon emote picker (#2781)

Co-authored-by: Paweł <zneix@zneix.eu>
This commit is contained in:
James Upjohn
2021-05-16 02:24:46 +12:00
committed by GitHub
parent 860cc89e14
commit 7c4c797dbc
3 changed files with 9 additions and 0 deletions
+7
View File
@@ -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();