|
@@ -5431,9 +5431,10 @@ extension KMMainViewController: CPDFViewDelegate,CPDFListViewDelegate {
|
|
|
}
|
|
|
|
|
|
func pdfListViewMenu(forEvent pdfListView: CPDFListView!, for theEvent: NSEvent!, click menu: AutoreleasingUnsafeMutablePointer<NSMenu?>!, isMoveSelectAnno: Bool) {
|
|
|
-
|
|
|
+ toggleClosePopUIWindow()
|
|
|
+
|
|
|
var pagePoint = CGPoint.zero
|
|
|
- let point = theEvent.locationInWindow
|
|
|
+ let point = self.view.convert(theEvent.locationInWindow, from: nil)
|
|
|
|
|
|
let isShowPopUI:Bool = !SettingsManager.sharedInstance.showQuickActionBar
|
|
|
|
|
@@ -5444,7 +5445,7 @@ extension KMMainViewController: CPDFViewDelegate,CPDFListViewDelegate {
|
|
|
groupListMenuGroup?.frame = CGRectMake(0, 0, 180, menuStruct.viewHeight)
|
|
|
groupListMenuGroup?.updateGroupInfo(menuStruct.menuitems)
|
|
|
|
|
|
- groupListMenuGroup?.showWithPoint(CGPoint(x: point.x, y: point.y - menuStruct.viewHeight), relativeTo: pdfListView)
|
|
|
+ groupListMenuGroup?.showWithPoint(CGPoint(x: point.x, y: point.y - menuStruct.viewHeight), relativeTo: nil)
|
|
|
} else {
|
|
|
var menuStringArr: [String] = []
|
|
|
let activeAnnotations = pdfListView.activeAnnotations as? [CPDFAnnotation]
|
|
@@ -5702,12 +5703,13 @@ extension KMMainViewController: CPDFViewDelegate,CPDFListViewDelegate {
|
|
|
groupListMenuGroup?.frame = CGRectMake(0, 0, 180, menuStruct.viewHeight)
|
|
|
groupListMenuGroup?.updateGroupInfo(menuStruct.menuitems)
|
|
|
|
|
|
- groupListMenuGroup?.showWithPoint(CGPoint(x: point.x, y: point.y - menuStruct.viewHeight), relativeTo: pdfListView)
|
|
|
+ groupListMenuGroup?.showWithPoint(CGPoint(x: point.x, y: point.y - menuStruct.viewHeight), relativeTo: nil)
|
|
|
}
|
|
|
- reloadPopUIWindow()
|
|
|
}
|
|
|
|
|
|
func pdfListViewMenuItemsEditing(at point: CGPoint, for page: CPDFPage!, menuItems: [NSMenuItem]!) -> [NSMenuItem]! {
|
|
|
+ toggleClosePopUIWindow()
|
|
|
+
|
|
|
var windowPoint = listView.convert(point, from: page)
|
|
|
let view: NSView? = nil
|
|
|
windowPoint = listView.convert(windowPoint, to: view)
|
|
@@ -5718,7 +5720,7 @@ extension KMMainViewController: CPDFViewDelegate,CPDFListViewDelegate {
|
|
|
groupListMenuGroup?.frame = CGRectMake(0, 0, 180, menuStruct.viewHeight)
|
|
|
groupListMenuGroup?.updateGroupInfo(menuStruct.menuitems)
|
|
|
|
|
|
- groupListMenuGroup?.showWithPoint(CGPoint(x: windowPoint.x, y: windowPoint.y - menuStruct.viewHeight), relativeTo: listView)
|
|
|
+ groupListMenuGroup?.showWithPoint(CGPoint(x: windowPoint.x, y: windowPoint.y - menuStruct.viewHeight), relativeTo: nil)
|
|
|
} else {
|
|
|
let isShowPopUI:Bool = !SettingsManager.sharedInstance.showQuickActionBar
|
|
|
var menuStringArr: [String] = []
|
|
@@ -5885,7 +5887,7 @@ extension KMMainViewController: CPDFViewDelegate,CPDFListViewDelegate {
|
|
|
groupListMenuGroup?.frame = CGRectMake(0, 0, 180, menuStruct.viewHeight)
|
|
|
groupListMenuGroup?.updateGroupInfo(menuStruct.menuitems)
|
|
|
|
|
|
- groupListMenuGroup?.showWithPoint(CGPoint(x: windowPoint.x, y: windowPoint.y - menuStruct.viewHeight), relativeTo: listView)
|
|
|
+ groupListMenuGroup?.showWithPoint(CGPoint(x: windowPoint.x, y: windowPoint.y - menuStruct.viewHeight), relativeTo: nil)
|
|
|
}
|
|
|
|
|
|
return []
|
|
@@ -6636,7 +6638,7 @@ extension KMMainViewController: ComponentGroupDelegate {
|
|
|
if copyText.isEmpty == true {
|
|
|
copyText = markupContent
|
|
|
} else {
|
|
|
- copyText = "\n" + markupContent
|
|
|
+ copyText = copyText + "\n" + markupContent
|
|
|
}
|
|
|
}
|
|
|
}
|