Change sybolic constant for insert key

This commit is contained in:
Kovid Goyal 2021-10-14 21:05:21 +05:30
parent c6039fc399
commit f28d9bcd8c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -496,7 +496,7 @@ is_modified_special_key(NSEvent *event, NSEventModifierFlags modifierFlags) {
case 0x1b: // Esc
if (modifierFlags & (NSEventModifierFlagCommand | NSEventModifierFlagControl)) return true;
break;
case NSInsertFunctionKey: // Insert
case NSHelpFunctionKey: // For some reason keyboards with an insert key have it mapped to help
if (!modifierFlags || modifierFlags == NSEventModifierFlagShift) return true;
break;
}