Fix word backspacing not closing/updating colon emote picker (#2781)
Co-authored-by: Paweł <zneix@zneix.eu>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user