void SetGrabKeyFunction (wxGrabKeyFunction f, void *data)
Installs a callback procedure that is invoked after the keymap matches input to a function name or fails to match an input. Only one keyboard grab function can be installed at a time. When keymaps are chained to a keymap with a grab callback, the callback is invoked for matches in the chained keymap (when the chained keymap does not have its own grab callback).
The form of the callback function f is:
typedef Bool (*wxGrabKeyFunction) (char *str, wxKeymap *km, wxMediaBuffer *media, wxKeyEvent &event, void *data)
The value of data is passed on to the callback function when it is invoked. The str argument is the name of a function for a matching callback, or NULL for a non-matching callback. The km argument is the keymap that matched (possibly a keymap chained to the one in which the callback was installed) or the keymap in which the callback was installed. The media and event arguments are the same as passed on to the matching keymap function.
If a grab callback returns TRUE for a matching or non-matching callback, the event is considered handled. If the callback returns TRUE for a matching callback, then the matching keymap function is not called by the keymap.
Key grab callback functions are de-installed with RemoveGrabKeyFunction.