Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4620715
Votes 2
Synopsis No way to see the Context Menu key on the windows keyboards
Category java:classes_awt
Reported Against hopper , merlin-rc1
Release Fixed 1.5(tiger)
State 10-Fix Delivered, request for enhancement
Priority: 4-Low
Related Bugs 4290799 , 4514132 , 4876034
Submit Date 08-JAN-2002
Description



On Windows keyboards there is a key that requests a context menu. C programs can see this key as a WM_CONTEXT message. This message has no handler other than that found in the Text Area. We need a way to get to the event for all components. This is needed for Section 508 compatibility. 
======================================================================
Work Around



There does not appear to be a workaround. The content menu key appears to return an invalid key code:

java.awt.event.KeyEvent[KEY_PRESSED,keyCode=0,keyChar='?',keyLocation=KEY_LOCATION_STANDARD] on qMain
java.awt.event.KeyEvent[KEY_RELEASED,keyCode=0,keyChar='?',keyLocation=KEY_LOCATION_STANDARD] on qMain
======================================================================
Evaluation
See 4352104 (4290799).  
 xxxxx@xxxxx  2002-03-21

The three keys of interest seem to be VK_LWIN (91), VK_RWIN (92), and 
VK_APPS (93) (from winuser.h).  LWIN and RWIN activate the start menu, 
and APPS activates the context menu.  

winuser.h
#define VK_LWIN           0x5B
#define VK_RWIN           0x5C
#define VK_APPS           0x5D

I tend towards adding Java KeyEvents like VK_WIN and VK_APPS 
and using KeyEvent.getLocation to distinguish between the left and right 
windows keys.  

 xxxxx@xxxxx  2003-04-20
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang