fix: don't ignore mousePressEvent in SplitInput (#4177)

Co-authored-by: Felanbird <41973452+Felanbird@users.noreply.github.com>
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
Fixes https://github.com/Chatterino/chatterino2/issues/3844
This commit is contained in:
nerix
2022-11-21 19:27:56 +01:00
committed by GitHub
parent 518262596a
commit 254f89f935
3 changed files with 13 additions and 0 deletions
+10
View File
@@ -648,6 +648,16 @@ void SplitInput::installKeyPressedEvent()
});
}
void SplitInput::mousePressEvent(QMouseEvent *event)
{
if (this->hidden)
{
BaseWidget::mousePressEvent(event);
}
// else, don't call QWidget::mousePressEvent,
// which will call event->ignore()
}
void SplitInput::onTextChanged()
{
this->updateCompletionPopup();