Article View: borland.public.jbuilder.java.language
Article #14496Re: Map Add key to Tab
From: Kobus du Toit
Date: Fri, 27 Aug 1999 00:00
Date: Fri, 27 Aug 1999 00:00
27 lines
1416 bytes
1416 bytes
I saw there is a setKeyCode. After getting the key set it to 0.
Kobus
Yasser wrote:
> I am wanting to make the Add key on the keyboard to be used as a Tab. I
> included the following code
> this.addKeyListener(new java.awt.event.KeyAdapter() {
> public void keyTyped(KeyEvent e) {
> }
> public void keyPressed(KeyEvent e) {
> int key = e.getKeyCode();
> if (key == KeyEvent.VK_ADD){
> getFocusOwner().transferFocus();
> }
> }
> });
>
> This works kind of okay but the problem I am getting is that a Plus sign
>
> is also put into my text fields. Is there a way I could completely
> disable that Add key and map it to a Tab key. Can this be done on the
> OS. I am using WINNT.
>
> Thanks
> Yasser
Technical Details
Message-ID:
<37C66E90.B126A240@iname.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<37C2AC75.DD1F529D@cs.twsu.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,6b718cda304af490 X-Google-Attributes: gidf74b3,public From: Kobus du Toit <battlezone@iname.com> Subject: Re: Map Add key to Tab Date: 1999/08/27 Message-ID: <37C66E90.B126A240@iname.com> X-Deja-AN: 517747988 Content-Transfer-Encoding: 7bit References: <37C2AC75.DD1F529D@cs.twsu.edu> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Reply-To: battlezone@iname.com Newsgroups: borland.public.jbuilder.java.language