Make first responder only if this is a blank new post

This commit is contained in:
Angelo Stavrow 2020-11-23 12:14:21 -05:00
parent c655e628e1
commit 99551b9a1d
No known key found for this signature in database
GPG Key ID: 1A49C7064E060EEE

View File

@ -60,7 +60,7 @@ struct PostTextEditingView: View {
}
MacEditorTextView(
text: $combinedText,
isFirstResponder: post.status == PostStatus.local.rawValue,
isFirstResponder: combinedText.isEmpty,
isEditable: true,
font: NSFont(name: appearance.rawValue, size: 17),
onEditingChanged: onEditingChanged,