Browse Source

【注释】文本注释输入状态时,在属性面板调整属性,文本注释要保持在输入状态

liujiajie 11 months ago
parent
commit
f21f1039fa

+ 2 - 1
PDF Office/PDF Master/Class/PDFWindowController/Side/RightSide/AnnotationProperty/KMGeneralAnnotationViewController.swift

@@ -887,7 +887,8 @@ let KMColorPickerViewHeight: CGFloat = 64
             if annotation is CPDFFreeTextAnnotation {
                 let textNote = (annotation as! CPDFFreeTextAnnotation)
                 if let isEdit = pdfView?.isEdit(withCurrentFreeText: textNote), isEdit {
-                    pdfView?.commitEditAnnotationFreeText(textNote)
+//                    pdfView?.commitEditAnnotationFreeText(textNote)
+                    pdfView?.editAnnotationFreeText(textNote)
                 }
                 
                 pdfView?.setNeedsDisplay(pdfView?.activeAnnotation)