8036757: [macosx] Space menu accelerator not rendered correctly
Reviewed-by: anthony, serb
--- 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;