8036757: [macosx] Space menu accelerator not rendered correctly
authorpchelko
Thu, 06 Mar 2014 14:47:43 +0400
changeset 23624 863a7441b898
parent 23623 72e320903ab9
child 23625 bb223c2c6fc0
8036757: [macosx] Space menu accelerator not rendered correctly Reviewed-by: anthony, serb
jdk/src/macosx/native/sun/awt/CMenuItem.m
--- a/jdk/src/macosx/native/sun/awt/CMenuItem.m	Thu Mar 06 12:18:31 2014 +0400
+++ b/jdk/src/macosx/native/sun/awt/CMenuItem.m	Thu Mar 06 14:47:43 2014 +0400
@@ -1,5 +1,5 @@
 /*
- * 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
@@ -259,7 +259,7 @@
         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;