<AWT Dev> [8] Review request for 8022997: [macosx] Remaining duplicated key events

Leonid Romanov leonid.romanov at oracle.com
Wed Aug 14 09:44:04 PDT 2013

Please review a one line fix for 8022997: [macosx] Remaining duplicated key events. NsCharToJavaChar() we call at CMenuItem.m:92 translates NSCarriageReturnCharacter (which is the key code generated by OS X when user presses "enter" key) into NSNewlineCharacter. So, in order to filter out the duplicate event at line 101, menuKey has to be NSNewlineCharacter as well. This is what the fix does. 

Bug: http://bugs.sun.com/view_bug.do?bug_id=8022997 (might not be available yet)
webrev: http://cr.openjdk.java.net/~leonidr/8022997/webrev.00/


More information about the awt-dev mailing list