ConfTextView: enable undo and disable junk

Double space stil makes a period, unfortunately.
This commit is contained in:
Jason A. Donenfeld 2019-01-10 11:15:40 +01:00 committed by Roopesh Chander
parent ab48f7bed8
commit 40cabd6e66
1 changed files with 8 additions and 0 deletions

View File

@ -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
}