Revision: 13552
http://sourceforge.net/p/skim-app/code/13552
Author: hofman
Date: 2023-07-31 14:34:37 +0000 (Mon, 31 Jul 2023)
Log Message:
-----------
hide loupe when losing key window status
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2023-07-31 14:23:10 UTC (rev 13551)
+++ trunk/SKPDFView.m 2023-07-31 14:34:37 UTC (rev 13552)
@@ -3310,12 +3310,16 @@
}
if ([[notification name] isEqualToString:NSWindowDidResignKeyNotification])
[self setTemporaryToolMode:SKNoToolMode];
- if (inKeyWindow == NO && interactionMode == SKPresentationMode) {
- [[self class] cancelPreviousPerformRequestsWithTarget:self
selector:@selector(showNavWindow) object:nil];
- [[self class] cancelPreviousPerformRequestsWithTarget:self
selector:@selector(doAutoHide) object:nil];
- [[self class] cancelPreviousPerformRequestsWithTarget:self
selector:@selector(doAutoHideCursor) object:nil];
- pdfvFlags.cursorHidden = 0;
- [self setCursorForMouse:nil];
+ if (inKeyWindow == NO) {
+ if (interactionMode == SKPresentationMode) {
+ [[self class] cancelPreviousPerformRequestsWithTarget:self
selector:@selector(showNavWindow) object:nil];
+ [[self class] cancelPreviousPerformRequestsWithTarget:self
selector:@selector(doAutoHide) object:nil];
+ [[self class] cancelPreviousPerformRequestsWithTarget:self
selector:@selector(doAutoHideCursor) object:nil];
+ pdfvFlags.cursorHidden = 0;
+ [self setCursorForMouse:nil];
+ } else if (toolMode == SKMagnifyToolMode) {
+ [loupeController hide];
+ }
}
}
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