Hi AWT team,

I recently field a bug 

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8019265

I am not sure whether you had a chance to look into the issue, so I want to 
share some additional details here.

It seems the problem is caused by [NSEvent charactersIgnoringModifiers] method.

You can find the problem description at 

http://lists.apple.com/archives/cocoa-dev/2008/Apr/msg01582.html

In [CMenuItem handleAction] menu shortcuts are not going to be process  
"because AWTView has already sent corresponding key event to the Java layer 
from performKeyEquivalent".

This works quite well until we get a shortcut where 'shift' key is pressed. 
[NSEvent charactersIgnoringModifiers]  method does not ignore 'shift' so we 
fire an item event which indistinguishable from an ordinary ItemEvent event. By 
this reason, the problem is quite difficult to workaround. For ordinary 
characters we could use [NSString lowercaseString] message to compare shortcut 
key and event key but for arrows and other keys like functional ones this does 
not work.

The problem prevents applications running on jdk7u from using shortcuts with a 
'shift' mask.

Thank you,
   Denis. 


Reply via email to