aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/SPDataImport.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/SPDataImport.m b/Source/SPDataImport.m
index 77e7f676..ef92996a 100644
--- a/Source/SPDataImport.m
+++ b/Source/SPDataImport.m
@@ -297,6 +297,9 @@
- (void)importFileSheetDidEnd:(id)sheet returnCode:(NSInteger)returnCode contextInfo:(NSString *)contextInfo
{
+ // Ensure text inputs are completed, preventing dead character entry
+ [sheet makeFirstResponder:nil];
+
// Save values to preferences
[prefs setObject:[(NSOpenPanel*)sheet directory] forKey:@"openPath"];
[prefs setObject:[[importFormatPopup selectedItem] title] forKey:@"importFormatPopupValue"];