Re: how to get a key_press_event for unfocussed windows?



Tristan Van Berkom schrieb:

Karl H. Beckers wrote:
<snip>

Is there a way to catch the key press from an unfocused (perhaps even iconified) window?
Without the help of the window manager?


http://developer.gnome.org/doc/API/2.0/gtk/gtk-General.html#gtk-key-snooper-install

Cheers,
                -Tristan

Hmm,

that didn't do the trick ...
lemme try to make myself clear again ;)

I'd like to catch a keypress even if my application's window doesn't have keyboard focus. Much like e.g. Alt-F1 opens the Gnome main menu even if I'm typing in a Mozilla message
window.
Is that possible without having to register with the window manager?
Any ideas (short of studying gnome-panel source ;) )?

TIA,

Karl.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]