From 470532d14629e8fb297624e77284f4fdb0ac31e6 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 10 Jan 2019 11:15:40 +0100 Subject: ConfTextView: enable undo and disable junk Double space stil makes a period, unfortunately. Signed-off-by: Jason A. Donenfeld --- WireGuard/WireGuard/UI/macOS/View/ConfTextView.swift | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'WireGuard/WireGuard/UI/macOS/View/ConfTextView.swift') 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 } -- cgit v1.2.3-59-g8ed1b