|
@@ -556,6 +556,10 @@ extension KMMainViewController {
|
|
|
let defaultSize = self.listView.defaultSize(with: .freeText, in: self.listView.currentPage())
|
|
|
let bounds = CPDFListViewRectFromCenterAndSize(CPDFListViewIntegralPoint(pagePoint), defaultSize)
|
|
|
annotation = self.listView.addAnnotation(with: .freeText, selection: nil, page: self.listView.currentPage(), bounds: bounds)
|
|
|
+ if ((annotation) != nil) {
|
|
|
+ self.listView.updateActiveAnnotations([annotation!])
|
|
|
+ self.listView.edit(annotation)
|
|
|
+ }
|
|
|
case 2:
|
|
|
// self.listView.annotationType = CAnnotationType.anchored
|
|
|
let defaultSize = self.listView.defaultSize(with: .anchored, in: self.listView.currentPage())
|
|
@@ -613,6 +617,10 @@ extension KMMainViewController {
|
|
|
let bounds = CPDFListViewRectFromCenterAndSize(CPDFListViewIntegralPoint(pagePoint), defaultSize)
|
|
|
annotation = self.listView.addAnnotation(with: .freeText, selection: nil, page: self.listView.currentPage(), bounds: bounds)
|
|
|
// self.view.window?.makeFirstResponder()
|
|
|
+ if ((annotation) != nil) {
|
|
|
+ self.listView.updateActiveAnnotations([annotation!])
|
|
|
+ self.listView.edit(annotation)
|
|
|
+ }
|
|
|
case 2:
|
|
|
// self.listView.annotationType = CAnnotationType.anchored
|
|
|
let defaultSize = self.listView.defaultSize(with: .anchored, in: self.listView.currentPage())
|