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)
}
}
void
InstantMessagingWidget::showEvent(QShowEvent *event)
{
ui->messageInput->setFocus();
}
void
InstantMessagingWidget::copyToClipboard()
{
......
......@@ -32,7 +32,7 @@ namespace Ui {
class InstantMessagingWidget;
}
class InstantMessagingWidget : public QWidget
class InstantMessagingWidget final : public QWidget
{
Q_OBJECT
......@@ -42,7 +42,8 @@ public:
void setMediaText(Call* call);
protected:
virtual void keyPressEvent(QKeyEvent *event);
virtual void keyPressEvent(QKeyEvent *event) override;
virtual void showEvent(QShowEvent * event) override;
//UI 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