Re: [Java-gnome-developer] KeyEvent, determining if Enter is pushed
Brought to you by:
afcowie
From: Joao V. <jvi...@ya...> - 2005-03-21 12:10:53
|
--- Jonathon Love <j...@co...> wrote: > G'day, > > I'm wanting a person to be able to enter a command into an Entry, and then > push enter. > > I can read the event.keyval , and see if it is equal to 65421 or 65293 , > (the two enter keys), but I was wondering if there weren't some slightly > more readable literal in java-gnome? > > In Gdk, you'd use GDK_Return , is there an equivalent in java-gnome? Yes, use org.gnu.gdk.KeySymbol. This is already in my TODO list, to document it better... Cheers, J.V. Yahoo! Mail - Com 250MB de espaço. Abra sua conta! http://mail.yahoo.com.br/ |