mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
parent
98e91f90c3
commit
bdec0557dc
|
@ -257,7 +257,8 @@ bool GenericChatForm::event(QEvent* e)
|
|||
if (e->type() == QEvent::KeyRelease && !msgEdit->hasFocus())
|
||||
{
|
||||
QKeyEvent* ke = static_cast<QKeyEvent*>(e);
|
||||
if (ke->modifiers() == Qt::NoModifier || ke->modifiers() == Qt::ShiftModifier)
|
||||
if ((ke->modifiers() == Qt::NoModifier || ke->modifiers() == Qt::ShiftModifier)
|
||||
&& !ke->text().isEmpty())
|
||||
msgEdit->setFocus();
|
||||
}
|
||||
return QWidget::event(e);
|
||||
|
|
Loading…
Reference in New Issue
Block a user