I implemented keyboard support on Mac by using CCEventDispatcher and it works OK. However, every time a key is pressed, OSX does that sound when no action has been taken by the entered command (just open Notes.app and hit ESC, you will know).
As this does not occurs when I enter fullscreen, I checked CCWindow and figured that the way the keyDown method is implemented stops the sound.
So, on AppController.mm, if we create the main window as a CCWindow, instead pure NSWindow, this would be resolved. Is there a better solution? Would this cause other problems? Should this be on cocos2d-x code natively?
I also commented
[super keyDown:event]; on CCWindow, but I don’t think it would be interesting for anyone.