Improves helder
This commit is contained in:
@@ -62,6 +62,7 @@ private struct NoteEditor: NSViewRepresentable {
|
||||
textView.autoresizingMask = [.width]
|
||||
textView.textContainer?.widthTracksTextView = true
|
||||
textView.maxSize = NSSize(width: CGFloat.greatestFiniteMagnitude, height: CGFloat.greatestFiniteMagnitude)
|
||||
textView.fillsClipView = true
|
||||
scroll.documentView = textView
|
||||
let role = Typography.note
|
||||
let paragraph = NSMutableParagraphStyle()
|
||||
@@ -119,7 +120,7 @@ private struct NoteEditor: NSViewRepresentable {
|
||||
}
|
||||
|
||||
/// Catches ⌘P before the menu bar's ⌘P (push) and draws the placeholder.
|
||||
private final class NoteTextView: NSTextView {
|
||||
private final class NoteTextView: PointerBoundTextView {
|
||||
var onKey: (OverlayKey) -> Bool = { _ in false }
|
||||
var placeholder = ""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user