RFR: 8284014 Menu items with submenus in JPopupMEnu are not spoken on macOS [v2]
Artem Semenov
asemenov at openjdk.java.net
Wed Apr 6 09:33:48 UTC 2022
On Mon, 4 Apr 2022 18:13:28 GMT, Phil Race <prr at openjdk.org> wrote:
>> Artem Semenov has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Is the check for the AccessibleRole.POPUP_MENU is needed here? How it will work if the Menu is added to some container other than POPUP_MENU?
>
> src/java.desktop/macosx/native/libawt_lwawt/awt/a11y/CommonComponentAccessibility.m line 129:
>
>> 127: * Here we should keep all the mapping between the accessibility roles and implementing classes
>> 128: */
>> 129: rolesMap = [[NSMutableDictionary alloc] initWithCapacity:51];
>
> I suppose 51 just seemed like a strange number ?
I removed one position from this dictionary, and therefore reduced the capacity.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8043
More information about the client-libs-dev
mailing list