ConfTextView: enable undo and disable junk
Double space stil makes a period, unfortunately. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
321b88864c
commit
470532d146
|
@ -23,6 +23,14 @@ class ConfTextView: NSTextView {
|
||||||
confTextStorage.addLayoutManager(layoutManager)
|
confTextStorage.addLayoutManager(layoutManager)
|
||||||
super.init(frame: CGRect(x: 0, y: 0, width: 1, height: 60), textContainer: textContainer)
|
super.init(frame: CGRect(x: 0, y: 0, width: 1, height: 60), textContainer: textContainer)
|
||||||
font = confTextStorage.defaultFont
|
font = confTextStorage.defaultFont
|
||||||
|
allowsUndo = true
|
||||||
|
isAutomaticSpellingCorrectionEnabled = false
|
||||||
|
isAutomaticDataDetectionEnabled = false
|
||||||
|
isAutomaticLinkDetectionEnabled = false
|
||||||
|
isAutomaticTextCompletionEnabled = false
|
||||||
|
isAutomaticTextReplacementEnabled = false
|
||||||
|
isAutomaticDashSubstitutionEnabled = false
|
||||||
|
isAutomaticQuoteSubstitutionEnabled = false
|
||||||
updateTheme()
|
updateTheme()
|
||||||
delegate = self
|
delegate = self
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue