Hi!
This AddKeyboardShortcut is a bit buggy with mac, hm? you have to push the keys way longer than usual, otherwise the program ignores the event.
Did i something wron, or why is it like that?
Code: Select all
window=OpenWindow(0,0,0,700,400,"Chart Plot",#PB_Window_ScreenCentered|#PB_Window_SystemMenu)
AddKeyboardShortcut(0,#PB_Shortcut_Command|#PB_Shortcut_Q, 15)
Repeat
Select WaitWindowEvent()
Case #PB_Event_CloseWindow
quit = #True
Case #PB_Event_Menu
If EventMenu() = 15
quit=#True
EndIf
Case #PB_Event_Gadget
EndSelect
Until quit
CloseWindow(0)
End