mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-09-20 19:19:41 +03:00
Also passthrough Insert and Shift+Insert which cocoa seems to intercept
This commit is contained in:
parent
706494016c
commit
c6039fc399
@ -492,8 +492,14 @@ - (void)render_frame_received:(id)displayIDAsID
|
||||
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…
Reference in New Issue
Block a user