]> git.saurik.com Git - wxWidgets.git/commitdiff
adding command key accelerator
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 29 Aug 2006 06:23:01 +0000 (06:23 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 29 Aug 2006 06:23:01 +0000 (06:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40906 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/accel.h

index 5e22e956231df62ba65d13cd98f20d122c36357d..8ce562237055cac557e3dd95981fb71a812907a5 100644 (file)
@@ -32,7 +32,12 @@ enum
     wxACCEL_NORMAL  = 0x0000,   // no modifiers
     wxACCEL_ALT     = 0x0001,   // hold Alt key down
     wxACCEL_CTRL    = 0x0002,   // hold Ctrl key down
-    wxACCEL_SHIFT   = 0x0004    // hold Shift key down
+    wxACCEL_SHIFT   = 0x0004,   // hold Shift key down
+#if defined(__WXMAC__) || defined(__WXCOCOA__)
+    wxACCEL_CMD      = 0x0008   // Command key on OS X
+#else
+    wxACCEL_CMD      = wxACCEL_CTRL
+#endif
 };
 
 // ----------------------------------------------------------------------------