Revision: 13649
          http://sourceforge.net/p/skim-app/code/13649
Author:   hofman
Date:     2023-09-08 22:17:36 +0000 (Fri, 08 Sep 2023)
Log Message:
-----------
don't allow pasting in presentation mode, it messes with undo and gives more 
inconsistencies

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2023-09-08 22:11:37 UTC (rev 13648)
+++ trunk/SKPDFView.m   2023-09-08 22:17:36 UTC (rev 13649)
@@ -3467,11 +3467,11 @@
             return YES;
         return NO;
     } else if (action == @selector(paste:)) {
-        return [[NSPasteboard generalPasteboard] 
canReadObjectForClasses:@[[PDFAnnotation class], [NSString class]] options:@{}];
+        return interactionMode != SKPresentationMode && [[NSPasteboard 
generalPasteboard] canReadObjectForClasses:@[[PDFAnnotation class], [NSString 
class]] options:@{}];
     } else if (action == @selector(alternatePaste:)) {
-        return [[NSPasteboard generalPasteboard] 
canReadObjectForClasses:@[[PDFAnnotation class], [NSAttributedString class], 
[NSString class]] options:@{}];
+        return interactionMode != SKPresentationMode && [[NSPasteboard 
generalPasteboard] canReadObjectForClasses:@[[PDFAnnotation class], 
[NSAttributedString class], [NSString class]] options:@{}];
     } else if (action == @selector(pasteAsPlainText:)) {
-        return [[NSPasteboard generalPasteboard] 
canReadObjectForClasses:@[[NSAttributedString class], [NSString class]] 
options:@{}];
+        return interactionMode != SKPresentationMode && [[NSPasteboard 
generalPasteboard] canReadObjectForClasses:@[[NSAttributedString class], 
[NSString class]] options:@{}];
     } else if (action == @selector(delete:)) {
         return [currentAnnotation isSkimNote];
     } else if (action == @selector(selectAll:)) {

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

Reply via email to