PyCWnd.HookAllKeyStrokes

HookAllKeyStrokes(obHandler)

Hook a key stroke handler for all key strokes.

Parameters

obHandler : object

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

Comments

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.