I hope this fixes some focus problems.
This commit is contained in:
parent
facdf5a2d8
commit
a7d5031889
1 changed files with 1 additions and 1 deletions
|
|
@ -1783,7 +1783,7 @@ void InputField::focusInEvent(QFocusEvent *e) {
|
||||||
_borderAnimationStart = (e->reason() == Qt::MouseFocusReason)
|
_borderAnimationStart = (e->reason() == Qt::MouseFocusReason)
|
||||||
? mapFromGlobal(QCursor::pos()).x()
|
? mapFromGlobal(QCursor::pos()).x()
|
||||||
: (width() / 2);
|
: (width() / 2);
|
||||||
InvokeQueued(this, [=] { onFocusInner(); });
|
InvokeQueued(this, [=] { if (hasFocus()) onFocusInner(); });
|
||||||
}
|
}
|
||||||
|
|
||||||
void InputField::mousePressEvent(QMouseEvent *e) {
|
void InputField::mousePressEvent(QMouseEvent *e) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue