United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4620715 No way to see the Context Menu key on the windows keyboards
JDK-4620715 : No way to see the Context Menu key on the windows keyboards

Details
Type:
Enhancement
Submit Date:
2002-01-08
Status:
Resolved
Updated Date:
2003-05-25
Project Name:
JDK
Resolved Date:
2003-05-25
Component:
client-libs
OS:
windows_nt
Sub-Component:
java.awt
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.4.0,1.4.1
Fixed Versions:
5.0 (tiger)

Related Reports
Duplicate:
Relates:

Sub Tasks

Description

Name: pa48320			Date: 01/08/2002

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. 
======================================================================

                                    

Comments
EVALUATION

See 4352104 (4290799).  
###@###.### 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.  

###@###.### 2003-04-20
                                     
2003-04-20
SUGGESTED FIX

Need to add two new constants to KeyEvent.java and update getKeyText.  
Also need to add the localizable properties to the ten properties files.  
Need to handle this in awt_Component.cpp. 
###@###.### 2003-04-20
                                     
2003-04-20
WORK AROUND



Name: pa48320			Date: 01/08/2002

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
======================================================================
                                     
2004-06-11
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
tiger

FIXED IN:
tiger

INTEGRATED IN:
tiger
tiger-b08


                                     
2004-06-14



Hardware and Software, Engineered to Work Together