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:
@@ -3,6 +3,7 @@
|
||||
## Unversioned
|
||||
|
||||
- Bugfix: Fixed being unable to see the usercard of VIPs who have Asian language display names. (#4174)
|
||||
- Bugfix: Fixed the wrong right-click menu showing in the chat input box. (#4177)
|
||||
|
||||
## 2.4.0-beta
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -87,6 +87,8 @@ protected:
|
||||
void paintEvent(QPaintEvent * /*event*/) override;
|
||||
void resizeEvent(QResizeEvent * /*event*/) override;
|
||||
|
||||
void mousePressEvent(QMouseEvent *event) override;
|
||||
|
||||
virtual void giveFocus(Qt::FocusReason reason);
|
||||
|
||||
QString handleSendMessage(std::vector<QString> &arguments);
|
||||
|
||||
Reference in New Issue
Block a user