Conversation
|
This PR contents duplicate #356. Did you push to the wrong branch? |
|
Hi @ilya-fedin, thanks for catching this! You're absolutely right that commit 4a892e7 is duplicated from #356 — that was an oversight during branching. |
Did you rebase it without push? 14 hours passed but the commits didn't change |
|
Sorry, I forget it. |
Did you forget again? And you have unsolved review on the other PR |
f1ac84c to
09f3503
Compare
When a PopupMenu opens while a screen reader is active, fire a QAccessible::Focus event on the menu so NVDA/JAWS/ORCA announce it immediately instead of waiting for the next focus change.
14396a3 to
478be3a
Compare
|
@ilya-fedin Sorry again for the long delay on this one — my mistake for not following through. The branch is now rebased onto current |
|
Are you sure this is right? Looking at |
|
@ilya-fedin Confirming the rebase is done and pushed: this branch now contains a single commit on top of master — only the |
|
@hesam-oxe but my last comment doesn't say anything about duplicated commits? And you didn't address it. As well as #356 still containing bugged commit. |
|
@ilya-fedin Fair question — I went through the What master already does (independent of this PR):
What this PR adds: one bare So: unless you know of a platform gap where that first item-level event fires too early to be picked up by the bridge (it does fire from inside |
|
Yeah, I had feeling the PR is redundant from start, I believe it should be closed |
|
Closing per @ilya-fedin's suggestion — and my own conclusion after tracing the menu stack. master already fires the equivalent event: This PR added one bare Thanks for pushing back on this, @ilya-fedin — the trace was worth doing, and the answer turned out to be "don't ship it". |
Summary
When a
Ui::PopupMenuopens while a screen reader is active, fire aQAccessible::Focusevent on the menu so NVDA/JAWS/ORCA announce it immediately (part of issue telegramdesktop/tdesktop#476).This is a self-contained change: it only emits an accessibility event in
PopupMenu::showPrepared()whenUi::ScreenReaderModeActive()is true; no menu logic or focus behavior is altered.Changes
ui/widgets/popup_menu.cpp: include<QtGui/QAccessible>and fireQAccessible::Focuson the menu after show under a screen reader.Related
feat/accessibility-complete-overhaul).Verification status
Phase 2-4 features implemented. Full functional verification requires a Qt6 build environment (the desktop-app Linux build compiles patched Qt6 from source inside Docker, which was not available in the implementation environment). CI validation requested. The
lib_uisubmodule must be updated to this branch head for the tdesktop side to build against the new accessible sub-item framework.