A key event identifier is passed to a window's OnChar or OnCharHook callback. The key code, position and state of shift/control/alt can be examined by calling the following functions.
key-event-alt-down
key-event-control-down
key-event-get-key-code
key-event-position-x
key-event-position-y
key-event-shift-down
long ( key-event-alt-down long event-id)
Returns 1 if alt was pressed.
long ( key-event-control-down long event-id)
Returns 1 if control was pressed.
string ( key-event-get-key-code long event-id)
Returns a string corresponding to the internal wxWindows key code, such as "WXK_BACK'', "WXK_F1'' or "WXK_RETURN''.
double ( key-event-position-x long event-id)
Gets the x position of the mouse pointer at the moment the key was pressed.
double ( key-event-position-y long event-id)
Gets the y position of the mouse pointer at the moment the key was pressed.
long ( key-event-shift-down long event-id)
Returns 1 if shift was pressed.