If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Hello, I am trying to catch the key commands (events) SHIFT + CONTROL at the same time to set a flag. While I am executing the following code,
it is not working. Trying to catch the SHIFT and CTRL commands separately it works fine, but that is not what I want to achieve.
Thank you, I have changed all to wxMOD_..., but the following code is still not working. I have tried to change the event.GetKeyCode() == WXK_SHIFT with event.GetModifiers() == wxMOD_SHIFT..., too.
Notice that this function is easier to use correctly than, for example, ControlDown() because when using the latter you also have to remember to test that none of the other modifiers is pressed:
Returns true if the Control key or Apple/Command key under OS X is pressed.
This function doesn't distinguish between right and left control keys.
Notice that GetModifiers() should usually be used instead of this one.