|
@@ -1461,6 +1461,20 @@ extension KMMainViewController: NSMenuItemValidation, NSMenuDelegate {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if menuItem.action == #selector(highlightFormFiled) {
|
|
|
+ let enabled = CPDFKitConfig.sharedInstance().enableFormFieldHighlight()
|
|
|
+ menuItem.state = enabled ? .on : .off
|
|
|
+
|
|
|
+ return true
|
|
|
+ }
|
|
|
+
|
|
|
+ if menuItem.action == #selector(highlightLinks) {
|
|
|
+ let enabled = CPDFKitConfig.sharedInstance().enableLinkFieldHighlight()
|
|
|
+ menuItem.state = enabled ? .on : .off
|
|
|
+
|
|
|
+ return true
|
|
|
+ }
|
|
|
+
|
|
|
guard let action = menuItem.action else {
|
|
|
return false
|
|
|
}
|