Fix chat widget focus deadzone

This commit is contained in:
Rasmus Karlsson 2017-07-31 01:26:20 +02:00
parent b25da12e9b
commit 5af5c9feb6
2 changed files with 7 additions and 0 deletions

View file

@ -143,5 +143,10 @@ void ChatWidgetInput::resizeEvent(QResizeEvent *)
}
}
void ChatWidgetInput::mousePressEvent(QMouseEvent *)
{
this->chatWidget->giveFocus();
}
} // namespace widgets
} // namespace chatterino

View file

@ -29,6 +29,8 @@ protected:
virtual void paintEvent(QPaintEvent *) override;
virtual void resizeEvent(QResizeEvent *) override;
virtual void mousePressEvent(QMouseEvent *event) override;
private:
ChatWidget *const chatWidget;