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

Add native global menu support (macOS) #644

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aaronfranke
Copy link
Sponsor Contributor

@aaronfranke aaronfranke commented Apr 9, 2024

Draft because I used the new Godot 4.3+ API so this will only work with Godot 4.3+. Follow-up to #643.

Screenshot 2024-04-09 at 4 33 47 AM Screenshot 2024-04-09 at 4 34 07 AM Screenshot 2024-04-09 at 4 34 17 AM Screenshot 2024-04-09 at 4 34 29 AM

This is not just about clicking buttons in the menu, it also provides convenient documentation for the user of what actions are available and which have keys available to press.
Screenshot 2024-04-09 at 4 33 14 AM

@MewPurPur
Copy link
Owner

Took a peek today, this seems too hard-coded. The shortcuts are only assigned on tree enter, and they don't seem to account for the user has changing the shortcuts. If necessary, you can add a custom notification for changed shortcuts in Utils.gd and listen to it here, fetching the first shortcut from each action instead.

I don't know the new 4.3 functionality though, maybe that's not possible.

@MewPurPur
Copy link
Owner

Needs to be updated after #711.

Please check out the TranslationUtils class!

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

2 participants