From 40cabd6e66d2e85be6882f7bd613508336c7c491 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 10 Jan 2019 11:15:40 +0100 Subject: [PATCH] ConfTextView: enable undo and disable junk Double space stil makes a period, unfortunately. --- WireGuard/WireGuard/UI/macOS/View/ConfTextView.swift | 8 ++++++++ 1 file changed, 8 insertions(+) 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 }