I have an app which requires that I be able to detect the status of modifier keys from within a wx.EVT_BUTTON handler. Because the app does not keep focus I cannot use a keypress event to toggle a key status. When the user clicks on a button, the choice of action depends on whether or not the CTRL key is pressed. The pseudo code would be
button click event handler
if CTRP_KEY is pressed
do action 1
do action 2
Is it possible to query the status of the modifier keys (shift, ctrl, alt, etc) ad hoc?