Skip to content

Use 'A' as accelerator for AI Hub menu to avoid conflict with Help (fixes #137) - #138

Closed
AdamMagued wants to merge 1 commit into
AAClause:masterfrom
AdamMagued:fix/ai-hub-menu-shortcut-conflict
Closed

AdamMagued wants to merge 1 commit into
AAClause:masterfrom
AdamMagued:fix/ai-hub-menu-shortcut-conflict

Conversation

@AdamMagued

Copy link
Copy Markdown

Summary of Changes

In the main NVDA menu, both AI Hub (AI &Hub) and NVDA's built-in Help (&Help) used h as their keyboard shortcut accelerator (#137).

This change:

  • Changes the accelerator from AI &Hub to &AI Hub in plugin_mixins.py so A activates the menu item and H remains free for NVDA's Help menu.
  • Fixes string formatting invocation with _("&AI Hub {addon_version}").format(...) so gettext can look up the message id properly.
  • Updates existing .po translation files with the new accelerator.

Closes #137.

@AdamMagued

Copy link
Copy Markdown
Author

closing in favor of #139 where i added dedicated unit test coverage for the menu accelerator. apologies for the duplicate PR!

@AdamMagued AdamMagued closed this Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AI Hub submenu letter conflict

1 participant