diff options
author | 2019-01-10 11:15:40 +0100 | |
---|---|---|
committer | 2019-01-14 14:52:36 +0530 | |
commit | 470532d14629e8fb297624e77284f4fdb0ac31e6 (patch) | |
tree | 7451030f753bb02d3709aff7a33cbf517db50839 /WireGuard/WireGuard/UI/macOS/View | |
parent | Cut/copy/paste now work (diff) | |
download | wireguard-apple-470532d14629e8fb297624e77284f4fdb0ac31e6.tar.xz wireguard-apple-470532d14629e8fb297624e77284f4fdb0ac31e6.zip |
ConfTextView: enable undo and disable junk
Double space stil makes a period, unfortunately.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'WireGuard/WireGuard/UI/macOS/View')
-rw-r--r-- | WireGuard/WireGuard/UI/macOS/View/ConfTextView.swift | 8 |
1 files changed, 8 insertions, 0 deletions
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 } |