NSControlKeyMask is deprecated in macOS 10.12 and has to be replaced by NSEventModifierFlagControl.

This commit is contained in:
Arnaud Barré 2018-10-19 00:21:27 -04:00
parent 97db21f206
commit 4fe9686dc5

View File

@ -658,7 +658,7 @@ static const NSRange kEmptyRange = { NSNotFound, 0 };
{
const NSUInteger modifierFlags = [nsevent modifierFlags];
NSString *chs = [nsevent charactersIgnoringModifiers];
if (modifierFlags & NSControlKeyMask)
if (modifierFlags & NSEventModifierFlagControl)
{
if ([chs characterAtIndex:0] == NSTabCharacter)
{