From e586eaef2eadcf3eccbb6f81d33bf005081451f2 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Fri, 26 Nov 2010 11:33:18 +0000 Subject: =?UTF-8?q?=E2=80=A2=20Bundle=20Command=20support=20-=20added=20sh?= =?UTF-8?q?ell=20var=20SP=5FICON=5FFILE=20-=20a=20bundle=20command=20which?= =?UTF-8?q?=20outputs=20its=20result=20as=20HTML=20window=20will=20write?= =?UTF-8?q?=20the=20data=20in=20the=20same=20window,=20ie=20it=20won't=20b?= =?UTF-8?q?e=20create=20each=20time=20a=20new=20window;=20the=20window=20w?= =?UTF-8?q?ill=20be=20identified=20by=20the=20bundle's=20uuid=20-=20fixed?= =?UTF-8?q?=20issue=20while=20saving=20a=20short-cut=20in=20keybinding.dic?= =?UTF-8?q?t=20format,=20now=20it=20ignores=20possible=20diacritics=20-=20?= =?UTF-8?q?maybe=20bug=20in=20ShortcutRecorder=20for=20method=20[aRecorder?= =?UTF-8?q?=20keyCharsIgnoringModifiers]=20since=20in=20the=20objectValue?= =?UTF-8?q?=20it's=20set=20correctly?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPBundleEditorController.m | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'Source/SPBundleEditorController.m') diff --git a/Source/SPBundleEditorController.m b/Source/SPBundleEditorController.m index 0a34e61b..bddc7a22 100644 --- a/Source/SPBundleEditorController.m +++ b/Source/SPBundleEditorController.m @@ -899,7 +899,13 @@ // Transform KeyCombo struct to KeyBinding.dict format for NSMenuItems NSMutableString *keyEq = [NSMutableString string]; - NSString *theChar = [[aRecorder keyCharsIgnoringModifiers] lowercaseString]; + + NSString *theChar = @""; + + if([aRecorder objectValue]) + theChar =[[[aRecorder objectValue] objectForKey:@"characters"] lowercaseString]; + else + theChar =[[aRecorder keyCharsIgnoringModifiers] lowercaseString]; [keyEq setString:@""]; if(newKeyCombo.code > -1) { if(newKeyCombo.flags & NSControlKeyMask) @@ -1120,9 +1126,8 @@ isValid = NO; } - // If not valid reset name to the old one - if(!isValid) { + if(!isValid && oldBundleName) { [[self _currentSelectedObject] setObject:oldBundleName forKey:kBundleNameKey]; } -- cgit v1.2.3