Skip to content
Browse files

Make the text view the first responder after selecting a file.

  • Loading branch information...
1 parent 0e74a56 commit 3d8564b243f48e6df848c57c79e56803152bc754 @alloy committed Sep 26, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/MacVim/MMFileBrowserController.m
View
4 src/MacVim/MMFileBrowserController.m
@@ -665,6 +665,8 @@ - (void)openSelectedFilesInCurrentWindowWithLayout:(int)layout {
[ud setBool:openInCurrentWindow forKey:MMOpenInCurrentWindowKey];
[ud setInteger:layoutBefore forKey:MMOpenLayoutKey];
+
+ [fileBrowser cancelOperation:self];
}
}
@@ -822,12 +824,10 @@ - (NSMenu *)menuForRow:(NSInteger)row {
// TODO is this the proper way to differentiate between selection changes because the user selected a file
// and a programmatic selection change?
- (void)outlineViewSelectionIsChanging:(NSNotification *)aNotification {
- NSLog(@"outlineViewSelectionIsChanging");
userHasChangedSelection = YES;
}
- (void)outlineViewSelectionDidChange:(NSNotification *)notification {
- NSLog(@"outlineViewSelectionDidChange");
MMFileBrowser *outlineView = fileBrowser;
if (userHasChangedSelection && [outlineView numberOfSelectedRows] == 1) {
MMFileBrowserFSItem *item = [self itemAtRow:[outlineView selectedRow]];

0 comments on commit 3d8564b

Please sign in to comment.
Something went wrong with that request. Please try again.