Gabor Szabo wrote:
Hi,
When trying to handle certain keyboard events I read on the
wxKeyEvent page that one should use GetModifiers and then compare
it to wxMOD_CONTROL rather than use ControlDown().
But I could not find wxMOD_CONTROL.
I missed it when it was added; added now to my local copy
wxMOD_NONE = 0x0000,
wxMOD_ALT = 0x0001,
wxMOD_CONTROL = 0x0002,
wxMOD_ALTGR = wxMOD_ALT | wxMOD_CONTROL,
wxMOD_SHIFT = 0x0004,
wxMOD_META = 0x0008,
wxMOD_WIN = wxMOD_META,
#if defined(__WXMAC__) || defined(__WXCOCOA__)
wxMOD_CMD = wxMOD_META,
#else
wxMOD_CMD = wxMOD_CONTROL,
#endif
wxMOD_ALL = 0xffff
this is the definition of the constants from wxWidgets.
Where is it defined and how is it called in wxPerl?
BTW, I do not know if you still plan to support
wxWidgets 2.6.x, but GetModifiers has been added in
wxWidgets 2.7.x.
Regards,
Mattia