Skip to content

MacOS: Cmd+Q doesn't work for quit and the quit menu item is grayed out? #275

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

Closed
philiplb opened this issue Mar 6, 2018 · 3 comments
Closed

Comments

@philiplb
Copy link

philiplb commented Mar 6, 2018

Hi,
I can't quit the hello world application via Cmd+Q and the quit menu item is greyed out. How can I activate this feature?

@andlabs
Copy link
Owner

andlabs commented Mar 6, 2018

At present, you need to add a Quit item to the menu bar. I haven't brought the menu API to Go yet because I'm not happy with it...

@philiplb
Copy link
Author

philiplb commented Mar 6, 2018

Thx for the quick answer.
Ok, how do I use the menu bar? I just see this boolean "hasMenuBar" of ui.NewWindow. But how do I add and control the menu items?

@andlabs
Copy link
Owner

andlabs commented Mar 25, 2018

See #277 and andlabs/libui#321. Closing for now.

@andlabs andlabs closed this as completed Mar 25, 2018
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

No branches or pull requests

2 participants