Fix arrow and function key bug on Tiger

The bug caused arrow (and function) key presses to be sent twice.
This commit is contained in:
Bjorn Winckler
2009-08-15 02:49:17 +02:00
parent 8cd984a56b
commit 2e45751630
+3 -1
View File
@@ -294,7 +294,9 @@ KeyboardInputSourcesEqual(TISInputSourceRef a, TISInputSourceRef b)
// HACK! Pass the event on or it may disappear (Tiger does not pass Cmd-key
// events to keyDown:).
[self keyDown:event];
if ([event type] == NSKeyDown)
[self keyDown:event];
return YES;
}