Only bypass interpretKeyEvents: if Ctrl is held on key down (fixes bug where alt-e, e, did not produce e-acute).

git-svn-id: http://macvim.googlecode.com/svn/trunk@112 96c4425d-ca35-0410-94e5-3396d5c13a8f
This commit is contained in:
Bjorn Winckler
2007-08-09 19:30:30 +00:00
parent 9b9a6096ed
commit 0813d7c5c2
+3 -3
View File
@@ -394,10 +394,10 @@
// interpretKeyEvents: since some keys are bound to multiple commands which
// means doCommandBySelector: is called several times.
//
// TODO: Figure out a way to disable Cocoa key bindings entirely.
// TODO: Figure out a way to disable Cocoa key bindings entirely, without
// affecting input management.
if ([event modifierFlags] &
(NSControlKeyMask|NSAlternateKeyMask|NSCommandKeyMask))
if ([event modifierFlags] & NSControlKeyMask)
[self dispatchKeyEvent:event];
else
[super keyDown:event];