Also passthrough Insert and Shift+Insert which cocoa seems to intercept
This commit is contained in:
parent
706494016c
commit
c6039fc399
@ -492,8 +492,14 @@ is_modified_special_key(NSEvent *event, NSEventModifierFlags modifierFlags) {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// ctrl+whatever+esc and cmd+whatever+esc
|
switch (ch) {
|
||||||
if (ch == 0x1b && (modifierFlags & (NSEventModifierFlagCommand | NSEventModifierFlagControl))) return true;
|
case 0x1b: // Esc
|
||||||
|
if (modifierFlags & (NSEventModifierFlagCommand | NSEventModifierFlagControl)) return true;
|
||||||
|
break;
|
||||||
|
case NSInsertFunctionKey: // Insert
|
||||||
|
if (!modifierFlags || modifierFlags == NSEventModifierFlagShift) return true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user