From 820fb6dda9b8af754e152497cbe45a818cf73fea Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 11 Oct 2021 11:27:24 +0530 Subject: [PATCH] Pass through all esc + modifier combinations since they arent generally used in macOS --- glfw/cocoa_init.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }