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

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -257,11 +257,11 @@
         switch (awtKey) {
         case java_awt_event_KeyEvent_VK_BACK_QUOTE      : macKey = '`'; break;
         case java_awt_event_KeyEvent_VK_QUOTE           : macKey = '\''; break;
 
         case java_awt_event_KeyEvent_VK_ESCAPE          : macKey = 0x1B; break;
-//        case java_awt_event_KeyEvent_VK_SPACE           : macKey = kMenuSpaceGlyph; break;
+        case java_awt_event_KeyEvent_VK_SPACE           : macKey = ' '; break;
         case java_awt_event_KeyEvent_VK_PAGE_UP         : macKey = NSPageUpFunctionKey; break;
         case java_awt_event_KeyEvent_VK_PAGE_DOWN       : macKey = NSPageDownFunctionKey; break;
         case java_awt_event_KeyEvent_VK_END             : macKey = NSEndFunctionKey; break;
         case java_awt_event_KeyEvent_VK_HOME            : macKey = NSHomeFunctionKey; break;