From 4fe9686dc5c4e102075e092f33d0ea1dbd3787a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnaud=20Barre=CC=81?= Date: Fri, 19 Oct 2018 00:21:27 -0400 Subject: [PATCH] NSControlKeyMask is deprecated in macOS 10.12 and has to be replaced by NSEventModifierFlagControl. --- src/cocoa_window.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cocoa_window.m b/src/cocoa_window.m index b5e7aade..2994f149 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -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) {