Browse Source

【右键菜单】添加便签注释时,应该默认为输入状态(已修复)

tangchao 1 year ago
parent
commit
1b209cf4f8

+ 3 - 1
PDF Office/PDF Master/Class/PDFWindowController/PDFListView/AppKitCategories/CPDFListEditAnnotationViewController.m

@@ -74,7 +74,9 @@
 - (void)viewDidAppear {
     [super viewDidAppear];
     
-    [self.view.window makeFirstResponder:self.contentTextView];
+    dispatch_async(dispatch_get_main_queue(), ^{
+        [self.view.window makeFirstResponder:self.contentTextView];
+    });
 }
 
 - (void)viewDidLoad {