Called before TranslateMessage and DispatchMessage Windows functions (PreTranslateMessage).

Avoid calling user32 functions without precautions here, there will be a recursive call if you fail to take countermeasures.

This function is global, so it also captures hotkeys (see Qt documentation). In Qt5 this function is almost never called, use PLUG_CB_WINEVENT instead.

    MSG* message;
    bool retval; //only set this to true if you want Qt to ignore the event.