aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPFieldEditorController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPFieldEditorController.m')
-rw-r--r--Source/SPFieldEditorController.m5
1 files changed, 3 insertions, 2 deletions
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;