Canvas - Error Sound on Keypress on MacOS
BlitzMax Forums/MaxGUI Module/Canvas - Error Sound on Keypress on MacOS
| ||
Hi there, I have built a window with a canvas in. On a key press something should happen in the canvas (EVENT_KEYDOWN). Now, on Mac OS on a key press the system plays an error sound as if you were trying to edit a textfield that is not editable. Or as if you try to press a button but there is a modal dialogue that has to be closed first. (I hope someone knows which sound I mean?) I also put a normal textedit gadget beside the convas to test this issue, but there the sound doesn't play. I've tested on Windows as well, there everything works fine. Is this a known Mac only issue? Is there a workaround? Thanks a lot for any help. Best Rene |
| ||
I know its an old post, but has anyone manage to figure this out? Thanks, Dinos |
| ||
Create a hotkey with MyHotKey:THotkey = SetHotKeyEvent (MYKEY, MYMODIFIER) and use EVENT_HOTKEYHIT instead of EVENT_KEYDOWN. Keep in mind, that you have to remove the hotkey with RemoveHotkey (MyHotKey) before ending your app. |
| ||
Thanks for the workaround. I'll try it but i'm not sure its the same. Besides EVENT_KEYDOWN , i'm using EVENT_KEYREPEAT which i'll have to emulate somehow. Any ideas why it only affects OS X only? |