Browse Source

【综合】【页面编辑】需要支持Command + A 全选页面(阅读页 & 主页快捷工具)(已修复)

tangchao 10 months ago
parent
commit
a418924498

+ 12 - 0
PDF Office/PDF Master/Class/PDFTools/PageEdit/Controller/KMPDFEditViewController.swift

@@ -284,6 +284,18 @@ class KMPDFEditViewController: KMPDFThumbViewBaseController {
         }
     }
     
+    
+    override func keyDown(with event: NSEvent) {
+//        super.keyDown(with: event)
+        let cmd = event.modifierFlags.contains(.command)
+        let shift = event.modifierFlags.contains(.shift)
+        let code = event.keyCode
+        if cmd && code == 0 { // cmd + a
+            self.km_comboBoxSelectionDidChange(.all)
+            return
+        }
+    }
+    
     // MARK: Private Methods
     
     private func getSelecteIndex() -> Int {

+ 5 - 0
PDF Office/PDF Master/Class/PDFWindowController/Side/LeftSide/Annotation/View/KMNoteTableViewCell.swift

@@ -282,6 +282,11 @@ extension KMNoteTableViewCell {
                     let anno = note as! CPDFStampAnnotation
                     self.noteImageView.image = anno.stampImage()
                 }
+            } else if let anno = data as? CPDFSignatureAnnotation {
+                self.annotationContentLabel.isHidden = true
+                
+                self.noteImageView.isHidden = false
+                self.noteImageView.image = anno.signImage
             } else if data.isKind(of: CPDFTextAnnotation.self) {
                 self.foldButton.isHidden = false
                 var noteTilte = noteString