Fix inner QTextEdit focus in case InputField is focused.

This commit is contained in:
John Preston 2024-05-16 13:28:21 +04:00
parent ebe8e91b4d
commit 72a1c98fa6

View file

@ -1878,7 +1878,7 @@ void InputField::focusInEvent(QFocusEvent *e) {
? mapFromGlobal(QCursor::pos()).x()
: (width() / 2);
InvokeQueued(this, [=] {
if (hasFocus()) {
if (QWidget::hasFocus()) {
focusInner();
}
});