I am maintaining a wxWidgets C++ application that uses EVT_CHAR_HOOK to capture key events in a high level window. I can’t find any real documentation for this event but I can surmise that it intercepts key events in some way that has priority over the “standard” key events. One disturbing thing that I just discovered is that, if this hook is in place, any accelerator keys that might have been defined will no longer fire their events even if the event handler calls Skip() on the event. I’ve also seen some posts when searching on google that seemed to suggest that EVT_CHAR_HOOK may not be supported on all platforms. Is this true and should I be using it?
I am maintaining a wxWidgets C++ application that uses EVT_CHAR_HOOK to capture key events
Share
I just looked into
src/gtk/window.cppand found this piece:So, maybe you just need to return
falsefrom yourOnCharHookevent handler?In accordance to one of wx Mailing list post:
But another post states:
This post may be of interest to you.