JDK-6240876 : Number pad up & down arrows don't work in XToolkit TextArea
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 5.0u3
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: x86
  • Submitted: 2005-03-15
  • Updated: 2010-04-02
  • Resolved: 2005-08-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other JDK 6
5.0u6Fixed 6 b47Fixed
Description
Bug Description: OPERATING SYSTEM(S):
Linux ia32

FULL JDK VERSION(S):
build 1.5.0_03-b05 

DESCRIPTION:
Run the following TATest testcase
(by default on Linux it should run with XToolkit)
Type several lines into the text area and then use the arrow
keys on the number pad to move around. Left and right work
but up and down do not.

import java.awt.Frame;
import java.awt.TextArea;

public class TATest extends Frame {

    TATest() { 
        add(new TextArea());
        pack();
        show();
    }

    public static void main(String [] args) {
	TATest tat = new TATest();
    }
}



###@###.### 2005-03-15 16:19:23 GMT

Comments
SUGGESTED FIX *** XAWTLookAndFeel.10 Mon Jul 18 19:31:55 2005 --- XAWTLookAndFeel.11 Mon Jul 18 19:31:47 2005 *************** *** 192,197 **** --- 192,199 ---- "control P", DefaultEditorKit.upAction, "UP", DefaultEditorKit.upAction, "DOWN", DefaultEditorKit.downAction, + "KP_UP", DefaultEditorKit.upAction, + "KP_DOWN", DefaultEditorKit.downAction, "PAGE_UP", DefaultEditorKit.pageUpAction, "PAGE_DOWN", DefaultEditorKit.pageDownAction, "shift PAGE_UP", "selection-page-up", *************** *** 200,205 **** --- 202,209 ---- "ctrl shift PAGE_DOWN", "selection-page-right", "shift UP", DefaultEditorKit.selectionUpAction, "shift DOWN", DefaultEditorKit.selectionDownAction, + "shift KP_UP", DefaultEditorKit.selectionUpAction, + "shift KP_DOWN", DefaultEditorKit.selectionDownAction, "ENTER", DefaultEditorKit.insertBreakAction, "TAB", DefaultEditorKit.insertTabAction, "control BACK_SLASH", "unselect", ###@###.### 2005-07-18 15:33:08 GMT
15-07-2005

EVALUATION Reproducible on JDK1.5b20. Seems to be a known Tiger issue. ###@###.### 2005-03-17 12:10:33 GMT JDK5.0b64 on my SuSE 9.2 with XKB doesn't work. Note that a similar Swing test works. I suspect it is one of the issues related to current XAWT TextField implementation. At least, XAWT XWindow.java handles both NumPad Up/Down and non-NumPad Up/Down quite similar, firing all right KeyEvents. ###@###.### 2005-03-18 09:31:42 GMT XAWT LAF does not contain KP_UP/KP_DOWN mappings. ###@###.### 2005-07-15 15:42:13 GMT
17-03-2005

WORK AROUND Use other arrow keys ###@###.### 2005-03-15 16:19:24 GMT
15-03-2005