X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ea8fa3c4e69ab7c0658a69945f444ca7e9b79a8e..2f783a23904c7b5057761aedb37ffc27fddb34d8:/interface/wx/defs.h diff --git a/interface/wx/defs.h b/interface/wx/defs.h index 1037aee283..c1fe02ada7 100644 --- a/interface/wx/defs.h +++ b/interface/wx/defs.h @@ -479,12 +479,12 @@ enum wxBorder #define wxICON_STOP wxICON_HAND #define wxICON_ASTERISK wxICON_INFORMATION -#define wxFORWARD 0x00001000 -#define wxBACKWARD 0x00002000 -#define wxRESET 0x00004000 -#define wxHELP 0x00008000 -#define wxMORE 0x00010000 -#define wxSETUP 0x00020000 +#define wxHELP 0x00001000 +#define wxFORWARD 0x00002000 +#define wxBACKWARD 0x00004000 +#define wxRESET 0x00008000 +#define wxMORE 0x00010000 +#define wxSETUP 0x00020000 #define wxICON_NONE 0x00040000 #define wxICON_MASK \ @@ -559,9 +559,8 @@ enum wxBackgroundStyle Notice that some, but @em not all, of these IDs are also stock IDs, i.e. you can use them for the button or menu items without specifying the label - which will be provided by the underlying platform itself. See @ref "the - list of stock items" for the subset of standard IDs which are stock IDs as - well. + which will be provided by the underlying platform itself. See @ref page_stockitems "the + list of stock items" for the subset of standard IDs which are stock IDs as well. */ enum wxStandardID { @@ -887,7 +886,19 @@ enum wxKeyCode WXK_CLEAR, WXK_SHIFT, WXK_ALT, + /** Note that under Mac OS X, to improve compatibility with other + * systems, 'WXK_CONTROL' represents the 'Command' key. Use this + * constant to work with keyboard shortcuts. See 'WXK_RAW_CONTROL' + * to get the state of the actual 'Control' key. + */ WXK_CONTROL, + /** Under Mac OS X, where the 'Command' key is mapped to 'Control' + * to improve compatibility with other systems, WXK_RAW_CONTROL may + * be used to obtain the state of the actual 'Control' key + * ('WXK_CONTROL' would obtain the status of the 'Command' key). + * Under Windows/Linux/Others, this is equivalent to WXK_RAW_CONTROL + */ + WXK_RAW_CONTROL, WXK_MENU, WXK_PAUSE, WXK_CAPITAL, @@ -978,6 +989,11 @@ enum wxKeyCode WXK_WINDOWS_LEFT, WXK_WINDOWS_RIGHT, WXK_WINDOWS_MENU , + + /** This special key code was used to represent the key used for keyboard shortcuts. Under Mac OS X, + * this key maps to the 'Command' (aka logo or 'Apple') key, whereas on Linux/Windows/others + * this is the Control key, with the new semantic of WXK_CONTROL, WXK_COMMAND is not needed anymore + */ WXK_COMMAND, /** Hardware-specific buttons */