|
@@ -584,7 +584,8 @@ 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: "")
|
|
|
+ var string = textField.stringValue.replacingOccurrences(of: "\n", with: "")
|
|
|
+ string = string.replacingOccurrences(of: "\r", with: "")
|
|
|
textField.stringValue = string
|
|
|
if mouseDownBox!.isEqual(linkPageBox) {
|
|
|
pageRecord = string
|