Pass through all esc + modifier combinations since they arent generally used in macOS

This commit is contained in:
Kovid Goyal 2021-10-11 11:27:24 +05:30
parent 85db87a121
commit 820fb6dda9
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -492,8 +492,8 @@ is_modified_special_key(NSEvent *event, NSEventModifierFlags modifierFlags) {
return true; return true;
} }
} }
// ctrl+esc and cmd+esc // ctrl+whatever+esc and cmd+whatever+esc
if (ch == 0x1b && (modifierFlags == NSEventModifierFlagCommand || modifierFlags == NSEventModifierFlagControl)) return true; if (ch == 0x1b && (modifierFlags & (NSEventModifierFlagCommand | NSEventModifierFlagControl))) return true;
return false; return false;
} }