|
@@ -583,13 +583,15 @@ enum KMAnnotationLinkType: UInt {
|
|
|
|
|
|
@objc func controlTextDidChange(_ notification: Notification) {
|
|
|
guard let textField = notification.object as? NSTextField else { return }
|
|
|
-
|
|
|
+
|
|
|
+ let string = textField.stringValue.replacingOccurrences(of: "\n", with: "")
|
|
|
+ textField.stringValue = string
|
|
|
if mouseDownBox!.isEqual(linkPageBox) {
|
|
|
- pageRecord = textField.stringValue
|
|
|
+ pageRecord = string
|
|
|
} else if mouseDownBox!.isEqual(linkUrlBox) {
|
|
|
- urlRecord = textField.stringValue
|
|
|
+ urlRecord = string
|
|
|
} else if mouseDownBox!.isEqual(linkEmailBox) {
|
|
|
- emailRecord = textField.stringValue
|
|
|
+ emailRecord = string
|
|
|
}
|
|
|
|
|
|
if linkType == KMAnnotationLinkType.page {
|