Closing the picker gives open text the keys back; colour edits wait for text editing (12.14d2)

This commit is contained in:
雷电芽衣 committed 2026-09-30 06:16:28 -04:00
1 parent 27a4fe8428
commit aa5a44e517
10 files changed
+217 -10

No files matched your search

+2 -2
View File
@@ -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);
}