Re: Checking modifier keys at any moment



From: Jarek Dukat <madmaxer poczta fm>
>
> I have a handler for GtkTreeView's row_activated and I'd like to check
> there if at the moment of signal emision any modifier key (I'm mostly
> interested in shift and mod1 keys) is pressed. Is there any gtk function
> that returns current state of these keys at any moment?
> I use Gtk+ 2.0.5.

You should be able to extract this information using
gdk_window_get_pointer().

Ron Steinke



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