aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPFieldEditorController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPFieldEditorController.m')
-rw-r--r--Source/SPFieldEditorController.m13
1 files changed, 7 insertions, 6 deletions
diff --git a/Source/SPFieldEditorController.m b/Source/SPFieldEditorController.m
index af5addf9..085a4933 100644
--- a/Source/SPFieldEditorController.m
+++ b/Source/SPFieldEditorController.m
@@ -72,16 +72,14 @@
if(!isEditable) {
[editSheetOkButton setTitle:NSLocalizedString(@"Close", @"close button title")];
+ [editSheetOkButton setKeyEquivalent:@"\033"]; // ESC key
[editSheetCancelButton setHidden:YES];
[editSheetOpenButton setEnabled:NO];
- } else {
- [editSheetOkButton setTitle:NSLocalizedString(@"OK", @"ok button title")];
- [editSheetCancelButton setHidden:NO];
- [editSheetOpenButton setEnabled:YES];
}
editSheetWillBeInitialized = YES;
+
encoding = anEncoding;
isBlob = isFieldBlob;
@@ -100,10 +98,13 @@
[editSheetSegmentControl setHidden:(!isBlob)];
// Set window's min size since no segment and quicklook buttons are hidden
- if(isBlob)
+ if(isBlob) {
+ [editSheet setFrameAutosaveName:@"SPFieldEditorBlobSheet"];
[editSheet setMinSize:NSMakeSize(560, 200)];
- else
+ } else {
+ [editSheet setFrameAutosaveName:@"SPFieldEditorTextSheet"];
[editSheet setMinSize:NSMakeSize(340, 150)];
+ }
[editTextView setEditable:isEditable];
[editImage setEditable:isEditable];