Browse Source

【2025】【BOTA】注释列表,展开注释回复时,建议输入框自动进入激活状态 - 修复

lizhe 3 weeks ago
parent
commit
6f209334f8

+ 1 - 1
PDF Office/PDF Master/KMClass/Left/Annotaion/Controller/KMLeftSideViewController.swift

@@ -384,7 +384,7 @@ class KMLeftSideViewController: KMSideViewController {
         self.noteOutlineView.reloadData()
     }
     
-    func updateExpand (model:KMBotaAnnotationModel,isExpand:Bool,item: Any) {
+    func updateExpand (model: KMBotaAnnotationModel, isExpand: Bool, item: Any) {
         // 将折叠状态记录到模型
         model.foldType = isExpand  ? .unfold : .fold
         

+ 4 - 0
PDF Office/PDF Master/KMClass/Left/Annotaion/View/KMNoteFooterCellView.swift

@@ -156,6 +156,10 @@ class KMNoteFooterCellView: NSTableCellView, NibLoadable {
             }
             // 12
             self.replyBox.isHidden = false
+            
+            DispatchQueue.main.async {
+                self.window?.makeFirstResponder(self.inputTextF)
+            }
         } else {
             // 64
             if animated {