🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #10645

Convert Add key to Tab

#10645
From: Yasser
Date: Tue, 24 Aug 1999 00:00
20 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: <37C2AB6B.50041F37@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: 111d45,90571304ff1815e,start
X-Google-Attributes: gid111d45,public
From: Yasser <ymsherif@cs.twsu.edu>
Subject: Convert Add key to Tab
Date: 1999/08/24
Message-ID: <37C2AB6B.50041F37@cs.twsu.edu>
X-Deja-AN: 516591650
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.swing