Revision: 3840
          http://skim-app.svn.sourceforge.net/skim-app/?rev=3840&view=rev
Author:   hofman
Date:     2008-05-02 14:13:19 -0700 (Fri, 02 May 2008)

Log Message:
-----------
Select note when pressing Enter on note table rather than just scrolling to it.

Modified Paths:
--------------
    trunk/SKMainWindowController_UI.m

Modified: trunk/SKMainWindowController_UI.m
===================================================================
--- trunk/SKMainWindowController_UI.m   2008-05-02 20:55:05 UTC (rev 3839)
+++ trunk/SKMainWindowController_UI.m   2008-05-02 21:13:19 UTC (rev 3840)
@@ -88,6 +88,8 @@
 
 - (void)showHoverWindowForDestination:(PDFDestination *)dest;
 
+- (void)selectSelectedNote;
+
 @end
 
 #pragma mark -
@@ -664,10 +666,7 @@
 
 - (void)outlineViewInsertNewline:(NSOutlineView *)ov {
     if ([ov isEqual:noteOutlineView]) {
-        NSArray *selectedNotes = [self selectedNotes];
-        if ([selectedNotes count])
-            [pdfView scrollAnnotationToVisible:[selectedNotes 
objectAtIndex:0]];
-        else NSBeep();
+        [self selectSelectedNote];
     }
 }
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to