src/macosx/native/sun/awt/CMenuItem.m

Print this page

        

@@ -294,11 +294,11 @@
         case java_awt_event_KeyEvent_VK_MULTIPLY        : macKey = '*'; break;
         case java_awt_event_KeyEvent_VK_ADD             : macKey = '+'; break;
 
         case java_awt_event_KeyEvent_VK_HELP            : macKey = NSHelpFunctionKey; break;
         case java_awt_event_KeyEvent_VK_TAB             : macKey = NSTabCharacter; break;
-        case java_awt_event_KeyEvent_VK_ENTER           : macKey = NSCarriageReturnCharacter; break;
+        case java_awt_event_KeyEvent_VK_ENTER           : macKey = NSNewlineCharacter; break;
         case java_awt_event_KeyEvent_VK_BACK_SPACE      : macKey = NSBackspaceCharacter; break;
         case java_awt_event_KeyEvent_VK_DELETE          : macKey = NSDeleteCharacter; break;
         case java_awt_event_KeyEvent_VK_CLEAR           : macKey = NSClearDisplayFunctionKey; break;
         case java_awt_event_KeyEvent_VK_AMPERSAND       : macKey = '&'; break;
         case java_awt_event_KeyEvent_VK_ASTERISK        : macKey = '*'; break;