From d6560942643fd41f3aa3f378c595387a26d35bdc Mon Sep 17 00:00:00 2001 From: Bibiko Date: Tue, 7 Dec 2010 11:56:49 +0000 Subject: =?UTF-8?q?=E2=80=A2=20fixed=20issue=20for=20starting=20General=20?= =?UTF-8?q?scope=20commands=20via=20keyboard=20short-cut?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPAppController.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source') diff --git a/Source/SPAppController.m b/Source/SPAppController.m index 3054892f..7d6c11ed 100644 --- a/Source/SPAppController.m +++ b/Source/SPAppController.m @@ -1491,7 +1491,7 @@ } } else if([scope isEqualToString:SPBundleScopeGeneral]) { - if(checkForKeyEquivalents && [assignedKeyEquivalents objectForKey:keyEqKey]) { + if(checkForKeyEquivalents && [assignedKeyEquivalents count]) { NSInteger idx = 0; if([assignedKeyEquivalents count] > 1) idx = [SPChooseMenuItemDialog withItems:assignedKeyEquivalents atPosition:[NSEvent mouseLocation]]; @@ -1502,7 +1502,7 @@ NSMenuItem *aMenuItem = [[[NSMenuItem alloc] init] autorelease]; [aMenuItem setTag:0]; [aMenuItem setToolTip:[eq objectForKey:@"path"]]; - [[[NSApp mainWindow] firstResponder] executeBundleItemForApp:aMenuItem]; + [self executeBundleItemForApp:aMenuItem]; } } } else { -- cgit v1.2.3