From 7ecd2eb53b3facfe238e999f0093706338bdf79e Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Tue, 30 Apr 2013 19:02:31 +0200 Subject: [PATCH] Fixed NSBeep on certain chords. --- src/cocoa_window.m | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/cocoa_window.m b/src/cocoa_window.m index 762e2a1c..ad64a5cf 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -466,15 +466,13 @@ static int convertMacKeyCode(unsigned int macKeyCode) _glfwInputKey(window, convertMacKeyCode([event keyCode]), GLFW_PRESS); if ([event modifierFlags] & NSCommandKeyMask) - [super keyDown:event]; - else - { - NSString* characters = [event characters]; - NSUInteger i, length = [characters length]; + return; - for (i = 0; i < length; i++) - _glfwInputChar(window, [characters characterAtIndex:i]); - } + NSString* characters = [event characters]; + NSUInteger i, length = [characters length]; + + for (i = 0; i < length; i++) + _glfwInputChar(window, [characters characterAtIndex:i]); } - (void)flagsChanged:(NSEvent *)event