I hope this fixes some focus problems.

This commit is contained in:
John Preston 2023-05-24 21:00:53 +04:00
parent facdf5a2d8
commit a7d5031889

View file

@ -1783,7 +1783,7 @@ void InputField::focusInEvent(QFocusEvent *e) {
_borderAnimationStart = (e->reason() == Qt::MouseFocusReason)
? mapFromGlobal(QCursor::pos()).x()
: (width() / 2);
InvokeQueued(this, [=] { onFocusInner(); });
InvokeQueued(this, [=] { if (hasFocus()) onFocusInner(); });
}
void InputField::mousePressEvent(QMouseEvent *e) {