I'd like to set some hotkeys for my program that can be raised no matter what object has focus within a wxPanel. Unfortunately, when I connect the event to the wxPanel, the event isn't raised and the callback isn't called.
Does anyone know how to make an event that gets fired no matter what object within a wxPanel has focus?
I am switching panels in a wxSimplebook to change the window's GUI (menus, etc). The problem is that niether the panel nor its children will recieve focus when there's no text box within the panel, so no character events are generated and the wxEVT_CHAR_HOOK event isn't raised... I have to click on the darn thing for the key event to be raised.
update:
Using accelerator tables gived the same result.