Revision: 16248
http://sourceforge.net/p/skim-app/code/16248
Author: hofman
Date: 2026-05-08 14:17:41 +0000 (Fri, 08 May 2026)
Log Message:
-----------
hide presentation toc sidewindow from search result selection change and double
click
Modified Paths:
--------------
trunk/SKMainWindowController.h
trunk/SKMainWindowController.m
trunk/SKMainWindowController_Actions.m
trunk/SKMainWindowController_UI.m
Modified: trunk/SKMainWindowController.h
===================================================================
--- trunk/SKMainWindowController.h 2026-05-08 09:28:24 UTC (rev 16247)
+++ trunk/SKMainWindowController.h 2026-05-08 14:17:41 UTC (rev 16248)
@@ -273,7 +273,7 @@
- (void)showFindBar;
-- (void)selectSearchResultHighlight:(NSSelectionDirection)direction;
+-
(void)updateSearchResultHighlightsForDirection:(NSSelectionDirection)direction;
- (BOOL)isOutlineExpanded:(PDFOutline *)outline;
- (void)setExpanded:(BOOL)flag forOutline:(PDFOutline *)outline;
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2026-05-08 09:28:24 UTC (rev 16247)
+++ trunk/SKMainWindowController.m 2026-05-08 14:17:41 UTC (rev 16248)
@@ -1947,12 +1947,6 @@
}
}
-- (void)selectSearchResultHighlight:(NSSelectionDirection)direction {
- [self updateSearchResultHighlightsForDirection:direction];
- if (direction == NSDirectSelection && [self interactionMode] ==
SKPresentationMode && [[NSUserDefaults standardUserDefaults]
boolForKey:SKAutoHidePresentationContentsKey])
- [self hideSideWindow];
-}
-
-
(void)updateSearchResultHighlightsForDirection:(NSSelectionDirection)direction {
NSArray *findResults = nil;
Modified: trunk/SKMainWindowController_Actions.m
===================================================================
--- trunk/SKMainWindowController_Actions.m 2026-05-08 09:28:24 UTC (rev
16247)
+++ trunk/SKMainWindowController_Actions.m 2026-05-08 14:17:41 UTC (rev
16248)
@@ -249,8 +249,12 @@
}
- (void)goToSelectedFindResults:(id)sender {
- if ([sender numberOfSelectedRows] > 0)
- [self selectSearchResultHighlight:NSDirectSelection];
+ if ([sender numberOfSelectedRows] > 0) {
+ [self updateSearchResultHighlightsForDirection:NSDirectSelection];
+
+ if ([self interactionMode] == SKPresentationMode && [[NSUserDefaults
standardUserDefaults] boolForKey:SKAutoHidePresentationContentsKey])
+ [self hideSideWindow];
+ }
}
- (void)toggleSelectedSnapshots:(id)sender {
Modified: trunk/SKMainWindowController_UI.m
===================================================================
--- trunk/SKMainWindowController_UI.m 2026-05-08 09:28:24 UTC (rev 16247)
+++ trunk/SKMainWindowController_UI.m 2026-05-08 14:17:41 UTC (rev 16248)
@@ -603,8 +603,12 @@
}
} else if ([tv isEqual:leftSideController.findTableView] ||
[tv isEqual:leftSideController.groupedFindTableView]) {
- if (mwcFlags.updatingFindResults == 0)
- [self selectSearchResultHighlight:NSDirectSelection];
+ if (mwcFlags.updatingFindResults == 0) {
+ [self updateSearchResultHighlightsForDirection:NSDirectSelection];
+
+ if ([self interactionMode] == SKPresentationMode &&
[[NSUserDefaults standardUserDefaults]
boolForKey:SKAutoHidePresentationContentsKey])
+ [self hideSideWindow];
+ }
}
}
@@ -767,13 +771,13 @@
- (void)tableViewMoveLeft:(NSTableView *)tv {
if (([tv isEqual:leftSideController.findTableView] || [tv
isEqual:leftSideController.groupedFindTableView])) {
- [self selectSearchResultHighlight:NSSelectingPrevious];
+ [self updateSearchResultHighlightsForDirection:NSSelectingPrevious];
}
}
- (void)tableViewMoveRight:(NSTableView *)tv {
if (([tv isEqual:leftSideController.findTableView] || [tv
isEqual:leftSideController.groupedFindTableView])) {
- [self selectSearchResultHighlight:NSSelectingNext];
+ [self updateSearchResultHighlightsForDirection:NSSelectingNext];
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit