Clean up issues brought up in recent TBR.
Check for single character, and check to make sure ctrl isn't down as well.
R=thomasvl
DELTA=2 (1 added, 0 deleted, 1 changed)
http://code.google.com/p/google-toolbox-for-mac/source/detail?r=317
Modified:
/trunk/AppKit/GTMNSAnimation+Duration.m
=======================================
--- /trunk/AppKit/GTMNSAnimation+Duration.m Thu Mar 25 17:33:37 2010
+++ /trunk/AppKit/GTMNSAnimation+Duration.m Fri Mar 26 11:05:21 2010
@@ -35,7 +35,8 @@
// and in the majority of cases slowing down the animations while
// navigating around UI elements is not desired.
if ((eventMask & NSKeyDownMask)
- && ([[event characters] length])
+ && !(modifiers & NSControlKeyMask)
+ && ([[event characters] length] == 1)
&& ([[event characters] characterAtIndex:0] == 25)) {
duration = duration;
} else {