diff options
| author | Doris Verria <doris.verria@qt.io> | 2024-06-27 14:21:54 +0200 |
|---|---|---|
| committer | Doris Verria <doris.verria@qt.io> | 2024-06-28 20:33:35 +0200 |
| commit | b17a8a9b26368ea39d6cec36b39286ff1b307cd2 (patch) | |
| tree | 20f09619430bdae2d243b155891af93cfdbccbdf /src/corelib/tracing/qctf.cpp | |
| parent | aa3e6ab27dacaef339997c85d3859bcf077b6db7 (diff) | |
Cocoa accessibility: Make menu items accessible
To make menu items accessible in Cocoa we need to:
1- Tell the accessbility framework that the focused element is now the
popup menu
Since we don't give focus to the popup menu in Qt, we have to work-
around this in the cocoa accessibility framework by sending a
NSAccessibilityFocusedUIElementChangedNotification when the
QAccessible::PopupMenuStart event happens.
2- Ignore the PopupMenu role
In a native context menu in macOS, the expected accessible element
is not the menu itself, but the menu items. That is why we should
ignore the PopupMenu role and directly access the menu items.
Fixes: QTBUG-68465
Pick-to: 6.8 6.7 6.5
Change-Id: I6b45fa3c762734274b4288cddeb038018327a4fe
Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'src/corelib/tracing/qctf.cpp')
0 files changed, 0 insertions, 0 deletions
