Closing the picker gives open text the keys back; colour edits wait for text editing (12.14d2)
This commit is contained in:
1 parent
27a4fe8428
commit
aa5a44e517
10 files changed
+217
-10
No files matched your search
@@ -89,9 +89,9 @@ void CanvasView::consumeFocusRequest(int request)
|
||||
if (request == m_lastFocusRequest)
|
||||
return;
|
||||
m_lastFocusRequest = request;
|
||||
// An open draft leaves the keys where they are.
|
||||
// Open text takes the keys back too, after the picker.
|
||||
QMetaObject::invokeMethod(this, [this] {
|
||||
if (!QApplication::activeModalWidget() && !m_session.textDraft())
|
||||
if (!QApplication::activeModalWidget())
|
||||
setFocus(Qt::OtherFocusReason);
|
||||
}, Qt::QueuedConnection);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user