andlabs / ui

Platform-native GUI library for Go.
Other
8.33k stars 651 forks source link

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

Closed philiplb closed 6 years ago

philiplb commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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