Skip to content
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

UI accelerators #2587

Closed
wants to merge 2 commits into from
Closed

Conversation

Vorschreibung
Copy link
Contributor

@Vorschreibung Vorschreibung commented Jun 1, 2024

This change adds Accelerator key functionality to ET's Menus, demo: https://www.youtube.com/watch?v=j33ZnEXoO54 by parsing ^_ metacharacters out of UI texts, highlighting them and registering their action to the onKey handler.

If the general idea of Accelerators are desirable and the current implementation suffices, I'd follow up filling in more Accelerators for UI Elements until it's in a release-able state.

src/ui/ui_main.c Outdated Show resolved Hide resolved
@jackeri
Copy link
Member

jackeri commented Jun 3, 2024

Really like this idea, though it does break the automatic generation of the translation files (which we haven't really used in a long time), but if that is all we can probably live with it.

@Vorschreibung Vorschreibung marked this pull request as draft June 7, 2024 12:01
src/ui/ui_menu.c Outdated Show resolved Hide resolved
Copy link

sonarcloud bot commented Jun 7, 2024

Quality Gate Passed Quality Gate passed

Issues
4 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@Vorschreibung
Copy link
Contributor Author

The scope of this has never been sufficiently clarified while meta-chars to translation files were explicitly rejected. - I think it makes more sense to close this altogether as that would constitute a different approach altogether that someone can take up in the future and where it's unlikely these commits would be of any help.

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.

None yet

4 participants