🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #19326

Re: KeyEvent Help

#19326
From: Neerav Shah
Date: Wed, 11 Feb 1998 00:00
16 lines
1094 bytes
On the key press event you should get a KeyEvent object.  Using that
object use getKeyCode() method and test the return value  to see if it
matches KeyEvent.VK_ENTER if it does then you know that the enter key was
pressed.  Hope that helps.

Walter Draffin wrote:

> I want to be able to test to see if the Enter key was pressed so I can
> either move the focus to the next field on the screen or to perform an
> action based upon the field it was on.  Could someone please give me
> some direction in how to do this?
>
> Thank you in Advance,
> Walter Draffin
> Telegraph New Technologies
Technical Details
Message-ID: <34E1BA92.BA9B76E7@digidox.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <34E067F1.38F60DD1@telegraph.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,8a572a3138c723e8
X-Google-Attributes: gidf74b3,public
From: Neerav Shah <nshah@digidox.com>
Subject: Re: KeyEvent Help
Date: 1998/02/11
Message-ID: <34E1BA92.BA9B76E7@digidox.com>
X-Deja-AN: 324124801
Content-Transfer-Encoding: 7bit
References: <34E067F1.38F60DD1@telegraph.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Organization: None
Newsgroups: borland.public.jbuilder.java.language