aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPNavigatorOutlineView.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPNavigatorOutlineView.m')
-rw-r--r--Source/SPNavigatorOutlineView.m9
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/SPNavigatorOutlineView.m b/Source/SPNavigatorOutlineView.m
index 812d0732..0962e44c 100644
--- a/Source/SPNavigatorOutlineView.m
+++ b/Source/SPNavigatorOutlineView.m
@@ -38,20 +38,21 @@
// Enter or Return selects in active document the chosen item
if ([self numberOfSelectedRows] == 1 && ([theEvent keyCode] == 36 || [theEvent keyCode] == 76)) {
[[self delegate] selectInActiveDocumentItem:[self itemAtRow:[self selectedRow]] fromView:self];
+
return;
}
[super keyDown:theEvent];
}
-/*
- * Return the data source item of the selected row, if no or multiple selections
- * return nil
+/**
+ * Return the data source item of the selected row, if no or multiple selections return nil.
*/
- (id)selectedItem
{
- if([self numberOfSelectedRows] == 1)
+ if ([self numberOfSelectedRows] == 1) {
return [self itemAtRow:[self selectedRow]];
+ }
return nil;
}