>Usually, the way you do that is use the 'state' field of events >like key presses and mouse events. You can test > > if (event->state & GDK_MOD1_MASK) > { > /* Do ALT key stuff */ > } This is one of the more broken things in GDK, actually, mod1 is far from always alt. I have meta on mod1 and alt on mod2. Others have Hyper or some other key on mod1. The modifiers are in no way fixed. It is, however, common that Alt is mod1. -- Per Hedbor http://per.hedbor.org/ -- To unsubscribe: mail -s unsubscribe [EMAIL PROTECTED] < /dev/null
- [gtk-list] Re: keyboard handling Stephen Witkop
- [gtk-list] Re: keyboard handling Antonio Campos
- [gtk-list] Re: keyboard handling Paul Barton-Davis
- [gtk-list] Re: keyboard handling Dermot Musgrove
- [gtk-list] Re: Accelerator question Guy Harris
- [gtk-list] Re: Accelerator question Dermot Musgrove
- [gtk-list] Re: Accelerator question Guy Harris
- [gtk-list] Re: Accelerator question Nicolas GEORGE
- [gtk-list] Re: Accelerator question Leonardo Zide
- [gtk-list] Re: Accelerator question Guy Harris
- [gtk-list] gtkmmext question Per Hedbor
- [gtk-list] gtkmmext question Andrew Burr
- [gtk-list] Re: gtkmmext question Karl Nelson