[Accessibility] Screen-reader not announcing keyboard shortcuts in plugin menu


Hello there, 

I have a plugin that is using `JBPopupFactory.getInstance().createActionGroupPopup()` to build a menu from a `plugin.xml`. 

The action is defined with a `<keyboard-shortcut>` as seen below. Similar to how it is done here https://plugins.jetbrains.com/docs/intellij/grouping-action.html#adding-a-new-action-to-the-static-grouped-actions.

<action id="org.intellij.sdk.action.DisablePlugin"
    <keyboard-shortcut first-keystroke="ctrl shift alt O" keymap="$default"/>
    <override-text place="MainMenu" text="Disable Plugin"/>
    <override-text place="popup" use-text-of-place="MainMenu"/>

However Screen-reader technology is not reading the shortcut keys, only the `override-text`. 

Is there something I can add to the `plugin.xml` to fix this? Or is this a known bug with the plugin API?

Tested on both Voice Over for Mac, and NVDA on Windows.

Thank you




Thanks for the report, this is definitely a bug on our side. I was able to reproduce it and created an issue: https://youtrack.jetbrains.com/issue/IDEA-347067/Screen-readers-dont-announce-keyboard-shortcuts-for-items-in-ActionGroupPopup. Unfortunately, I don't see an easy workaround.


Please sign in to leave a comment.