changeset 7147:d9866f861d4e

RT-37026: Menubar menu item accelerators work only upon second pressing Summary: Register key events from performKeyEquivalent in addition to keyDown Reviewed-by: snorthov
author Anthony Petrov <anthony.petrov@oracle.com>
date Wed, 28 May 2014 20:38:51 +0400
parents 5f3323f66723
children 5fa1ecad2ed5
files modules/graphics/src/main/native-glass/mac/GlassView3D.m
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/native-glass/mac/GlassView3D.m	Wed May 28 11:58:40 2014 -0400
+++ b/modules/graphics/src/main/native-glass/mac/GlassView3D.m	Wed May 28 20:38:51 2014 +0400
@@ -453,6 +453,8 @@
 - (BOOL)performKeyEquivalent:(NSEvent *)theEvent
 {
     KEYLOG("performKeyEquivalent");
+    [GlassApplication registerKeyEvent:theEvent];
+
     // Crash if the FS window is released while performing a key equivalent
     // Local copy of the id keeps the retain/release calls balanced.
     id fsWindow = [self->_delegate->fullscreenWindow retain];