mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-27 03:42:49 +00:00
Also passthrough Insert and Shift+Insert which cocoa seems to intercept
This commit is contained in:
parent
706494016c
commit
c6039fc399
1 changed files with 8 additions and 2 deletions
|
|
@ -492,8 +492,14 @@ is_modified_special_key(NSEvent *event, NSEventModifierFlags modifierFlags) {
|
|||
return true;
|
||||
}
|
||||
}
|
||||
// ctrl+whatever+esc and cmd+whatever+esc
|
||||
if (ch == 0x1b && (modifierFlags & (NSEventModifierFlagCommand | NSEventModifierFlagControl))) return true;
|
||||
switch (ch) {
|
||||
case 0x1b: // Esc
|
||||
if (modifierFlags & (NSEventModifierFlagCommand | NSEventModifierFlagControl)) return true;
|
||||
break;
|
||||
case NSInsertFunctionKey: // Insert
|
||||
if (!modifierFlags || modifierFlags == NSEventModifierFlagShift) return true;
|
||||
break;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue