From 1c82518f5bd4a505516cb3a22df61b3fd279df14 Mon Sep 17 00:00:00 2001 From: "gtm.daemon" Date: Fri, 26 Mar 2010 18:05:21 +0000 Subject: [Author: dmaclach] 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) --- AppKit/GTMNSAnimation+Duration.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'AppKit/GTMNSAnimation+Duration.m') diff --git a/AppKit/GTMNSAnimation+Duration.m b/AppKit/GTMNSAnimation+Duration.m index 02f2b67..5155c38 100644 --- a/AppKit/GTMNSAnimation+Duration.m +++ b/AppKit/GTMNSAnimation+Duration.m @@ -35,7 +35,8 @@ NSTimeInterval GTMModifyDurationBasedOnCurrentState(NSTimeInterval duration, // 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 { -- cgit v1.2.3