none of that setKeyboardFocus/GrabKeyboardFocus is necessary to intercept key presses:
see the 3-function example code at the end of the above post for all you need to capture keyPress events.
none of that setKeyboardFocus/GrabKeyboardFocus is necessary to intercept key presses:
see the 3-function example code at the end of the above post for all you need to capture keyPress events.