Question on keyboard focus



Hi,

If I connect to the "key-pressed-event" of the main window GtkWidget of my
application, the callback gets called when I type in a GtkEntry or a
GtkSpinButton. I would like my callback to be called or have some means to
mask out calls depending on whether the application window itself is in
focus and some keys are pressed (F5 or PageUp for example) or the user is
entering information in a field (pressing PageUp then should increment
something but not call the default application reaction).

Does anyone have any ideas?

solarsd



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