Merge pull request #1272 from mitchellh/mrn/clipboard-dialog-default-focus

macos: allow submitting clipboard confirmation with return
This commit is contained in:
Mitchell Hashimoto
2024-01-09 22:24:12 -08:00
committed by GitHub

View File

@ -48,10 +48,12 @@ struct ClipboardConfirmationView: View {
.padding() .padding()
} }
TextEditor(text: .constant(contents)) ScrollView {
.textSelection(.enabled) Text(contents)
.font(.system(.body, design: .monospaced)) .textSelection(.enabled)
.padding(.all, 4) .font(.system(.body, design: .monospaced))
.padding(.all, 4)
}
HStack { HStack {
Spacer() Spacer()