JDK-4342169 : In Solaris, KeyEvents are not fired for arrow keys when pressed by Robot.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.4.0
  • Priority: P3
  • Status: Closed
  • Resolution: Not an Issue
  • OS: solaris_7
  • CPU: sparc
  • Submitted: 2000-05-31
  • Updated: 2000-06-28
  • Resolved: 2000-06-28
Related Reports
Relates :  
Description
In Solaris KeyPressed and KeyReleased are not triggered for Up, Down, Right, Left Keys.

How to reproduce the Bug? -------->
Run this sample code. You would see a frame with a red Canvas.This is an automated test. No user interaction allowed.The robot will press the different arrow keys.If key events are triggered, the message will be displayed
on the text area.

	If Key Events are not triggered , the bug is reproduced.

Comments
EVALUATION This is not specific to the robot. I tested this on my system (gradgrind - Solaris 2.7) and found that the key events generated depend on how you have your keyboard configured. If you have the numpad arrow keys set to generate XK_Left, etc. this test will fail. If you have them set to generate XK_KP_Left, the test will pass. You can examine the settings using xmodmap -pke. After some consideration, I think this is as it should be. Unfortunately, I think that the default setting is for both the distinct arrow keys and the numpad arrow keys to generate XK_Left. eric.hawkes@eng 2000-06-09 I emailed the sun contact for more information on June 22, 2000. Setting to incomplete. eric.hawkes@eng 2000-06-27 As shown by the results of an xmodmap -pke (see Comments section), my suspicion about the keyboard mapping was correct. Closing as Not A Bug. Note: mapping the numeric keypad arrow keys can be done from the console or in a script as follows: xmodmap -e "keycode 98 = KP_Left" xmodmap -e "keycode 100 = KP_Right" xmodmap -e "keycode 76 = KP_Up" xmodmap -e "keycode 120 = KP_Down" If this mapping has been done, the test will pass. eric.hawkes@eng 2000-06-28
28-06-2000