aseprite / laf

A C++ library to create desktop applications
https://aseprite.github.io/laf/
MIT License
276 stars 60 forks source link

Fix macOS dialogues not responding to Cmd-AZXCV #10

Closed ayuusweetfish closed 5 years ago

ayuusweetfish commented 5 years ago

Closes aseprite/aseprite#1973.

I was sure this could not be achieved with an application delegate; an invisible menu would solve the problem, but might be quite cumbersome. Thus I ended up copying much code in this StackOverflow post and it worked nicely.

I'm not sure whether this is the right way to name ("OSX" + "NS" looks unnecessary, but there is already an "OSXApp") and place the inherited class, so please specify if anything is to be changed. Thanks!

dacap commented 5 years ago

Thanks for this one too @kawa-yoiko 🙏 (OSXNSApplication is fine, maybe in the future we rename it to OSXApplication or similar)