[Java-gnome-developer] Re: KeyEvent, determining if Enter is pushed
Brought to you by:
afcowie
From: Jonathon L. <j...@co...> - 2005-03-22 08:28:59
|
thanks for the speedy response, another query though, the following code determines when the left-most enter key (on a standard australian/america= n 101 ithink) is pressed, but does not include the right most (one on the number pad) public void command_entered(KeyEvent event) { int keyval =3D event.getKeyval(); if (keyval =3D=3D KeySymbol.Return.getValue()) { System.out.println("Enter Pressed"); } } Is there a neat way to do respond to both enter keys, or do I have to go: if (keyval =3D=3D KeySymbol.Return.getValue() || keyval =3D=3D 65421) { thanks J. >> >> 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=E7o. Abra sua conta! > http://mail.yahoo.com.br/ > > > --__--__-- > > Message: 3 > Date: Mon, 21 Mar 2005 13:54:16 -0500 > From: Andrew Overholt <ove...@re...> > To: Java Gnome Developers Mailinglist > <jav...@li...> > Reply-To: Andrew Overholt <ove...@re...> > Subject: [Java-gnome-developer] "Java-GNOME Con 1" > > Hi, > > Some of us up here in the Red Hat Canada office in Toronto would like t= o > host a semi-official get-together on 2005-04-02. It won't be some > fancy-schmancy sponsored event or anything, but we have a room where we > can > work together. We'd like it to be a hackfest-type day of getting stuff > done. Jeff Morgan says he can make it and anybody else who wants to co= me > is welcome. All we ask is that you email one of us to make sure we kno= w > you're coming and so that we can give you details. > > Thanks, > > Ben Konrath & Andrew Overholt > Pseudo-organizers of "Java-GNOME Con 1" > > > --__--__-- > > Message: 4 > Subject: Re: [Java-gnome-developer] "Java-GNOME Con 1" > From: Andrew Cowie <an...@op...> > To: jav...@li... > Organization: Operational Dynamics > Date: Tue, 22 Mar 2005 08:27:18 +1100 > > On Mon, 2005-21-03 at 13:54 -0500, Andrew Overholt wrote: >> Some of us up here in the Red Hat Canada office in Toronto would like = to >> host a semi-official get-together on 2005-04-02. > > Beat me to it. > > I'm going to be in Toronto the first week of April, and am thrilled tha= t > Jeff is planning to make the trip up as well. > > Putting faces to names (not to mention hoisting a pint or two) has > always given a significant boost to open source projects, and I look > forward to meeting Jeff, Ben, Andrew, Thomas, and anyone else who can > make it. > > AfC > Sydney > > -- > Andrew Frederick Cowie > Managing Director > > Phone relays worldwide: > Sydney +61 2 9977 6866 > New York +1 646 472 5054 > Toronto +1 416 848 6072 > London +44 207 1019201 > > OPERATIONAL DYNAMICS > Operations Consultants and Infrastructure Engineers > specializing in technology strategy, changes & upgrades, > enterprise architecture, and performance improvement for > mission critical systems & the people who run them. > > http://www.operationaldynamics.com/ > > > > > --__--__-- > > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > > > End of java-gnome-developer Digest > |