🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Map Add key to Tab

#14567
From: Yasser
Date: Tue, 24 Aug 1999 00:00
21 lines
1203 bytes
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: <37C2AC75.DD1F529D@cs.twsu.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,6b718cda304af490,start
X-Google-Attributes: gidf74b3,public
From: Yasser <ymsherif@cs.twsu.edu>
Subject: Map Add key to Tab
Date: 1999/08/24
Message-ID: <37C2AC75.DD1F529D@cs.twsu.edu>
X-Deja-AN: 516591649
Content-Transfer-Encoding: 7bit
Organization: Another Netscape Collabra Server User
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language