Re: bug poke.



On Tue, 2006-02-21 at 16:40 +0100, Alexander Larsson wrote:

> You should use "(event->state & GDK_SHIFT_MASK) == GDK_SHIFT_MASK" like
> christian said (otherwise it'd also match e.g. ctrl-shift enter). Also,
> shouldn't it return TRUE, since it handles the key event?

Actually, you should do

  (event->state & gtk_accelerator_get_default_mod_mask()) == GDK_SHIFT_MASK

per http://developer.gnome.org/doc/API/2.0/gtk/checklist-modifiers.html

Otherwise, shift+enter won't work if you have NumLock or CapsLock on.

  Federico




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