mirror of
https://github.com/glfw/glfw.git
synced 2025-04-10 15:24:08 +00:00
Fixed NSBeep on certain chords.
This commit is contained in:
parent
296632c8d2
commit
7ecd2eb53b
1 changed files with 6 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue