Commit bd0baf8b authored by Edric Milaret's avatar Edric Milaret Committed by Stepan Salenikovich

im: focus message input on show

Refs #75258

Change-Id: I481793e236dec64dad7fe788d129ffd25711e245
parent 01f23849
...@@ -118,6 +118,12 @@ InstantMessagingWidget::keyPressEvent(QKeyEvent *event) ...@@ -118,6 +118,12 @@ InstantMessagingWidget::keyPressEvent(QKeyEvent *event)
} }
} }
void
InstantMessagingWidget::showEvent(QShowEvent *event)
{
ui->messageInput->setFocus();
}
void void
InstantMessagingWidget::copyToClipboard() InstantMessagingWidget::copyToClipboard()
{ {
......
...@@ -32,7 +32,7 @@ namespace Ui { ...@@ -32,7 +32,7 @@ namespace Ui {
class InstantMessagingWidget; class InstantMessagingWidget;
} }
class InstantMessagingWidget : public QWidget class InstantMessagingWidget final : public QWidget
{ {
Q_OBJECT Q_OBJECT
...@@ -42,7 +42,8 @@ public: ...@@ -42,7 +42,8 @@ public:
void setMediaText(Call* call); void setMediaText(Call* call);
protected: protected:
virtual void keyPressEvent(QKeyEvent *event); virtual void keyPressEvent(QKeyEvent *event) override;
virtual void showEvent(QShowEvent * event) override;
//UI SLOTS //UI SLOTS
private slots: private slots:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment