I am binding the EVT_CHAR event of the application to the function,
and I get some of the keystrokes. But when focus is on windows
such as a slider or option buttons, etc. the key events aren't
passed up. I'm hoping I don't have to do custom event handlers
for every specific widget...
···
-----Original Message-----
From: Mike C. Fletcher [mailto:mcfletch@rogers.com]
Sent: Monday, January 27, 2003 11:22 AM
To: wxPython-users@lists.wxwindows.org
Subject: Re: [wxPython-users] Global handler for unhandled keyboard
events?
The chain for wxCommandEvent handlers eventually goes to the wxApp if
not handled elsewhere. Bind these types of handlers on the wxApp and
you're golden.
I believe there is also some support for explicit global accellerator
tables, but I haven't used those as-of-yet.
Good luck,
Mike
Jeff Kotula wrote:
Hi again. I'd like to set up a single function as a global accelerator handler.
This handler would be called, ideally, after the normal event-handling stuff
has a chance to handle the keyboard input. This would let me have global
function keys that operated the same regardless of which window had focus
(unless that window ate the input anyway).Has anyone done anything like this?
-------------------------------------------------------------------------------------
Jeff Kotula Systems Architecture Manager
Vital Images jkotula@vitalimages.comAlthough the module is mathematically correct, the solution
is physically impossible. Either that, or you have actually
created mass and I will apologize for underestimating
your power.
-- Things to Tell Programmers,
Dilbert Short List
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org
________________________________________________________________________
This email has been scanned for all viruses and found to be virus free. If you have questions regarding this scanning please visit the Information Services area of http://home.vitalimages.com
________________________________________________________________________