1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-10-08 15:17:25 -04:00

Fixed NSBeep on certain chords.

This commit is contained in:
Camilla Berglund 2013-04-30 19:02:31 +02:00
parent 296632c8d2
commit 7ecd2eb53b

View File

@ -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
{
return;
NSString* characters = [event characters];
NSUInteger i, length = [characters length];
for (i = 0; i < length; i++)
_glfwInputChar(window, [characters characterAtIndex:i]);
}
}
- (void)flagsChanged:(NSEvent *)event