aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-08-05 12:43:37 +0000
committerstuconnolly <stuart02@gmail.com>2009-08-05 12:43:37 +0000
commit4772138258627d959994b6a707f6440a75c618e9 (patch)
tree19bc486fedac230cd21129fa5c1547bc8c885921
parent45d3ddf30437903045f31a30356502af91dd7a7d (diff)
downloadsequelpro-4772138258627d959994b6a707f6440a75c618e9.tar.gz
sequelpro-4772138258627d959994b6a707f6440a75c618e9.tar.bz2
sequelpro-4772138258627d959994b6a707f6440a75c618e9.zip
In addition to fn+return give the OK button in the content edit sheet the key equivalent cmd+return. Implements #321.
-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;