Browse Source

【注释】按ESC不能退出工具的问题

lizhe 1 year ago
parent
commit
326304f623

+ 1 - 1
PDF Office/PDF Master/Class/PDFWindowController/PDFListView/CPDFListViewExtension/CPDFListView+KeyEvent.m

@@ -94,7 +94,7 @@
 //        if ((self.toolMode == CEditPDFToolMode) && (self.annotationType == CAnnotationTypeAddText || self.annotationType == CAnnotationTypeAddImage)) {
 //            [[NSNotificationCenter defaultCenter] postNotificationName:@"CEditPDFToolModeChangeStateUnkown" object:self];
 //        }
-//        [self setAnnotationType:CAnnotationTypeUnkown];
+        [self setAnnotationType:CAnnotationTypeUnkown];
     } else if(self.activeAnnotations.count > 0 && eventChar == CPDFListEscapeCharacter){
         [self updateActiveAnnotations:@[]];
         [self setNeedsDisplayAnnotationViewForVisiblePages];