From: Jason A. Donenfeld Date: Thu, 10 Jan 2019 10:15:40 +0000 (+0100) Subject: ConfTextView: enable undo and disable junk X-Git-Tag: 0.0.20190207-1~116 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=470532d14629e8fb297624e77284f4fdb0ac31e6;p=thirdparty%2Fwireguard-apple.git ConfTextView: enable undo and disable junk Double space stil makes a period, unfortunately. Signed-off-by: Jason A. Donenfeld --- diff --git a/WireGuard/WireGuard/UI/macOS/View/ConfTextView.swift b/WireGuard/WireGuard/UI/macOS/View/ConfTextView.swift index 4be292f..954a192 100644 --- a/WireGuard/WireGuard/UI/macOS/View/ConfTextView.swift +++ b/WireGuard/WireGuard/UI/macOS/View/ConfTextView.swift @@ -23,6 +23,14 @@ class ConfTextView: NSTextView { confTextStorage.addLayoutManager(layoutManager) super.init(frame: CGRect(x: 0, y: 0, width: 1, height: 60), textContainer: textContainer) font = confTextStorage.defaultFont + allowsUndo = true + isAutomaticSpellingCorrectionEnabled = false + isAutomaticDataDetectionEnabled = false + isAutomaticLinkDetectionEnabled = false + isAutomaticTextCompletionEnabled = false + isAutomaticTextReplacementEnabled = false + isAutomaticDashSubstitutionEnabled = false + isAutomaticQuoteSubstitutionEnabled = false updateTheme() delegate = self }