Re: How to capture keystrokes when GTK menu is open?
- From: Justin Clift <justin postgresql org>
- To: gtk-app-devel-list gnome org
- Subject: Re: How to capture keystrokes when GTK menu is open?
- Date: Wed, 21 Feb 2007 09:19:12 +1100
-----BEGIN PGP SIGNED MESSAGE-----
David NeÄas (Yeti) wrote:
On Wed, Feb 21, 2007 at 08:41:10AM +1100, Justin Clift wrote:
Though, the more I think about this, I'm kind of surprised there isn't
some kind of gtk-wide configurable exception list of key's that are
passed through. Just for apps that really do need those keystrokes!
As Tristan explained, having such a list in Gtk+ would be of
no avail. When some window grabs the keyboard, it
essentially tells the X server `send all keyboard events to
me'. If the window has already received the keyboard event,
it cannot tell `hey, I do not want this one, take it back
and process as if no grab existed'.
Thanks Yeti. :)
Just started reading up on keyboard "grabbing", and am now starting to
clue in regarding it's operation.
Will need to think on this more...
Regards and best wishes,
The Flame Project - Open Source GUI for animated SVG & Flash
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
] [Thread Prev