diff --git a/glfw/cocoa_init.m b/glfw/cocoa_init.m index 3c78a3b0d..e90282de9 100644 --- a/glfw/cocoa_init.m +++ b/glfw/cocoa_init.m @@ -492,8 +492,8 @@ is_modified_special_key(NSEvent *event, NSEventModifierFlags modifierFlags) { return true; } } - // ctrl+esc and cmd+esc - if (ch == 0x1b && (modifierFlags == NSEventModifierFlagCommand || modifierFlags == NSEventModifierFlagControl)) return true; + // ctrl+whatever+esc and cmd+whatever+esc + if (ch == 0x1b && (modifierFlags & (NSEventModifierFlagCommand | NSEventModifierFlagControl))) return true; return false; }