mirror of
https://github.com/glfw/glfw.git
synced 2026-09-22 16:52:57 +00:00
Fixed NSBeep on certain chords.
This commit is contained in:
+2
-4
@@ -466,16 +466,14 @@ static int convertMacKeyCode(unsigned int macKeyCode)
|
|||||||
_glfwInputKey(window, convertMacKeyCode([event keyCode]), GLFW_PRESS);
|
_glfwInputKey(window, convertMacKeyCode([event keyCode]), GLFW_PRESS);
|
||||||
|
|
||||||
if ([event modifierFlags] & NSCommandKeyMask)
|
if ([event modifierFlags] & NSCommandKeyMask)
|
||||||
[super keyDown:event];
|
return;
|
||||||
else
|
|
||||||
{
|
|
||||||
NSString* characters = [event characters];
|
NSString* characters = [event characters];
|
||||||
NSUInteger i, length = [characters length];
|
NSUInteger i, length = [characters length];
|
||||||
|
|
||||||
for (i = 0; i < length; i++)
|
for (i = 0; i < length; i++)
|
||||||
_glfwInputChar(window, [characters characterAtIndex:i]);
|
_glfwInputChar(window, [characters characterAtIndex:i]);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
- (void)flagsChanged:(NSEvent *)event
|
- (void)flagsChanged:(NSEvent *)event
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user