aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-01-10 11:15:40 +0100
committerRoopesh Chander <roop@roopc.net>2019-01-14 14:52:36 +0530
commit470532d14629e8fb297624e77284f4fdb0ac31e6 (patch)
tree7451030f753bb02d3709aff7a33cbf517db50839 /WireGuard
parentCut/copy/paste now work (diff)
downloadwireguard-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')
-rw-r--r--WireGuard/WireGuard/UI/macOS/View/ConfTextView.swift8
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 4be292f6..954a1922 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
}