mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 10:05:10 +00:00
NSControlKeyMask is deprecated in macOS 10.12 and has to be replaced by NSEventModifierFlagControl.
This commit is contained in:
parent
97db21f206
commit
4fe9686dc5
@ -658,7 +658,7 @@ static const NSRange kEmptyRange = { NSNotFound, 0 };
|
|||||||
{
|
{
|
||||||
const NSUInteger modifierFlags = [nsevent modifierFlags];
|
const NSUInteger modifierFlags = [nsevent modifierFlags];
|
||||||
NSString *chs = [nsevent charactersIgnoringModifiers];
|
NSString *chs = [nsevent charactersIgnoringModifiers];
|
||||||
if (modifierFlags & NSControlKeyMask)
|
if (modifierFlags & NSEventModifierFlagControl)
|
||||||
{
|
{
|
||||||
if ([chs characterAtIndex:0] == NSTabCharacter)
|
if ([chs characterAtIndex:0] == NSTabCharacter)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user