2008-02-19 10:15:32 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: keymod.h
|
|
|
|
// Purpose: key modifiers
|
|
|
|
// Author: wxWidgets team
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Licence: wxWindows license
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
2008-02-19 12:28:40 -05:00
|
|
|
@page keymodifiers Key Modifiers
|
2008-02-19 10:15:32 -05:00
|
|
|
|
|
|
|
Include file: @verbatim #include <wx/defs.h> @endverbatim
|
|
|
|
|
|
|
|
The following key modifier constants are defined:
|
|
|
|
|
|
|
|
@verbatim
|
|
|
|
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
|
|
|
|
};
|
|
|
|
@endverbatim
|
|
|
|
|
2008-02-19 11:51:34 -05:00
|
|
|
Notice that @c wxMOD_CMD should be used instead of @c wxMOD_CONTROL
|
2008-02-19 10:15:32 -05:00
|
|
|
in portable code to account for the fact that although
|
|
|
|
@c 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
|
|
|
|
@c Command modifier is used in exactly the same way.
|
|
|
|
|
|
|
|
*/
|