mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-07 15:37:14 +02:00
Fix for Leopard Ctl-key bug.
In Leopard Ctrl-key events are sent to performKeyEquivalent: instead of keyDown:, so we have to deal with them there as well.
This commit is contained in:
committed by
Bjorn Winckler
parent
75b61c87cf
commit
25bf887ced
@@ -302,6 +302,13 @@ static NSString *MMKeypadEnterString = @"KA";
|
||||
if ([event keyCode] == 50)
|
||||
return NO;
|
||||
|
||||
// HACK! On Leopard Ctrl-key events end up here instead of keyDown:.
|
||||
if (flags & NSControlKeyMask) {
|
||||
NSLog(@"pass on control key");
|
||||
[self dispatchKeyEvent:event];
|
||||
return YES;
|
||||
}
|
||||
|
||||
//NSLog(@"%s%@", _cmd, event);
|
||||
|
||||
NSString *chars = [event characters];
|
||||
|
||||
Reference in New Issue
Block a user