[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtk
Subject:    Preventing propagation of events
From:       Lars Clausen <lrclause () cs ! uiuc ! edu>
Date:       2003-08-28 19:33:13
[Download RAW message or body]


Hi!

I'm trying to make the Dia dialogs do Cancel on Esc and OK on Enter.
However, I'm having some problems when those keypresses are being used for
other things in the dialog.  For instance, Esc can be used to pop down
menus, and Enter can be used in text widgets.  I tried having the text
widget return TRUE on Enter, to avoid the event going out to the dialog,
but I guess the dialog gets it first, as it still closes.  Am I completely
off into the woods here?

Thanks in advance,
-Lars

-- 
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| HÃ¥rdgrim of Numenor
"I do not agree with a word that you say, but I   |----------------------------
will defend to the death your right to say it."   | Where are we going, and
    --Evelyn Beatrice Hall paraphrasing Voltaire  | what's with the handbasket?
_______________________________________________
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic