Re: bug poke.



On Thu, 2006-23-02 at 20:51 -0600, Federico Mena Quintero wrote:
> 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.
It will.  The only problem with doing it my way is that things other
than shift+enter will also match (for example, shift+ctrl+enter).

Cheers

Attachment: signature.asc
Description: This is a digitally signed message part



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