|
@@ -186,7 +186,9 @@ enum KMAnnotationLinkType: UInt {
|
|
|
inputPageTextField.layer?.cornerRadius = 1.0
|
|
|
inputUrlTextField.layer?.cornerRadius = 1.0
|
|
|
|
|
|
- inputUrlTextField.inputContext?.allowedInputSourceLocales = [NSAllRomanInputSourcesLocaleIdentifier]
|
|
|
+// inputUrlTextField.inputContext?.allowedInputSourceLocales = [NSAllRomanInputSourcesLocaleIdentifier]
|
|
|
+ let cell = self.inputUrlTextField.cell as? NSTextFieldCell
|
|
|
+ cell?.allowedInputSourceLocales = [NSAllRomanInputSourcesLocaleIdentifier]
|
|
|
|
|
|
if let annotationURL = annotation?.url() {
|
|
|
var urlString = annotationURL.fileURL.absoluteString
|
|
@@ -528,7 +530,9 @@ enum KMAnnotationLinkType: UInt {
|
|
|
pdfview!.needsDisplay = true
|
|
|
|
|
|
if let url = (pdfview?.activeAnnotation as! CPDFLinkAnnotation).url() {
|
|
|
- NSWorkspace.shared.open(URL(string: url)!)
|
|
|
+ if let data = URL(string: url) {
|
|
|
+ NSWorkspace.shared.open(data)
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
case .email:
|