From 4772138258627d959994b6a707f6440a75c618e9 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Wed, 5 Aug 2009 12:43:37 +0000 Subject: In addition to fn+return give the OK button in the content edit sheet the key equivalent cmd+return. Implements #321. --- Source/SPFieldEditorController.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Source') diff --git a/Source/SPFieldEditorController.m b/Source/SPFieldEditorController.m index 9b0eda67..3c1ac05e 100644 --- a/Source/SPFieldEditorController.m +++ b/Source/SPFieldEditorController.m @@ -37,6 +37,9 @@ // force the nib to be loaded (void) [self window]; counter = 0; + + // Allow the user to enter cmd+return to close the edit sheet in addition to fn+return + [editSheetOkButton setKeyEquivalentModifierMask:NSCommandKeyMask]; } return self; @@ -51,7 +54,6 @@ - (id)editWithObject:(id)data usingEncoding:(NSStringEncoding)anEncoding isObjectBlob:(BOOL)isFieldBlob isEditable:(BOOL)isEditable withWindow:(NSWindow *)tableWindow { - prefs = [NSUserDefaults standardUserDefaults]; if ( [prefs boolForKey:@"UseMonospacedFonts"] ) { @@ -78,7 +80,6 @@ editSheetWillBeInitialized = YES; - encoding = anEncoding; isBlob = isFieldBlob; -- cgit v1.2.3