Hook a key stroke handler for all key strokes.


obHandler : object

The handler for the keystrokes. This must be a callable object.


The handler object passed will be called as the application receives WM_CHAR messages. The handler will be called with 2 arguments
The handler object (as per all hook functions).
The keystroke being handled.
If the handler returns TRUE, then the keystroke will be passed on to the default handler, otherwise it will be consumed.
Note: This handler will prevent any PyCWnd::HookKeyStroke hooks from being called.