Commit 01301103 authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Ensure that focus for link is announced after focus for label

We need to delay the call of focusNextPrevChild(), so that accessibility
clients are notified that the link got focus after they have been notified
that the label got focus.

GnuPG-bug-id: 6034
parent 3dc48f11
Pipeline #194041 passed with stage
in 4 minutes and 15 seconds
......@@ -44,6 +44,8 @@ void UrlLabel::focusInEvent(QFocusEvent *event)
// immediately focus the URL when the label get focus
QLabel::focusInEvent(event);
if (!hasSelectedText()) {
focusNextPrevChild(true);
QMetaObject::invokeMethod(this, [this]() {
focusNextPrevChild(true);
}, Qt::QueuedConnection);
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment