key modifiers
include files
<wx/defs.h>
the following key modifier constants are defined:
enum wxkeymodifier
{
wxmod_none = 0x0000,
wxmod_alt = 0x0001,
wxmod_control = 0x0002,
wxmod_altgr = wxmod_alt | wxmod_control,
wxmod_shift = 0x0004,
wxmod_meta = 0x0008,
#if defined(__wxmac__) || defined(__wxcocoa__)
wxmod_cmd = wxmod_meta,
#else
wxmod_cmd = wxmod_control,
#endif
wxmod_all = 0xffff
};
notice that wxmod_cmd should be used instead of
wxmod_control in portable code to account for the fact that although
control modifier exists under mac os, it is not used for the same
purpose as under windows or unix there while the special mac-specific
command modifier is used in exactly the same way.
|