-
-
Notifications
You must be signed in to change notification settings - Fork 441
feat: auto mnemonics #1082
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: auto mnemonics #1082
Conversation
006bc6a to
b7be953
Compare
CyanVoxel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good on Fedora 42 KDE and doesn't intrude on macOS 15 👍
Might be good to move this to a separate file rather than keep it in the main_window.py one, but like you said that can be for a future PR.
| logger = structlog.get_logger(__name__) | ||
|
|
||
|
|
||
| def remove_accelerator_marker(label: str) -> str: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a note, not requiring a change here: There's some similar functionality in change_language() of translations.py that's currently only targeting macOS
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
give me a sec to fix that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nvm, separate pr in a sec ^^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops, just now saw this
Summary
Reimplement KDE's system for autogenerating mnemonics1 which also incorporates
&markings when present, but doesn't require them to be present.Currently only works for the drop downs but could probably be adopted for the menu bar as well.
Example - File menu with all

&removed from translations:Possible Future PRs:
&from translations where now unnecessaryTasks Completed
Footnotes
See Wiki, Headerfile and Source Code ↩