mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Fix chat widget focus deadzone
This commit is contained in:
parent
b25da12e9b
commit
5af5c9feb6
|
@ -143,5 +143,10 @@ void ChatWidgetInput::resizeEvent(QResizeEvent *)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ChatWidgetInput::mousePressEvent(QMouseEvent *)
|
||||||
|
{
|
||||||
|
this->chatWidget->giveFocus();
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace widgets
|
} // namespace widgets
|
||||||
} // namespace chatterino
|
} // namespace chatterino
|
||||||
|
|
|
@ -29,6 +29,8 @@ protected:
|
||||||
virtual void paintEvent(QPaintEvent *) override;
|
virtual void paintEvent(QPaintEvent *) override;
|
||||||
virtual void resizeEvent(QResizeEvent *) override;
|
virtual void resizeEvent(QResizeEvent *) override;
|
||||||
|
|
||||||
|
virtual void mousePressEvent(QMouseEvent *event) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ChatWidget *const chatWidget;
|
ChatWidget *const chatWidget;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue