changeset 23624:863a7441b898

8036757: [macosx] Space menu accelerator not rendered correctly Reviewed-by: anthony, serb
author pchelko
date Thu, 06 Mar 2014 14:47:43 +0400
parents 72e320903ab9
children bb223c2c6fc0
files jdk/src/macosx/native/sun/awt/CMenuItem.m
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;