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()
}
TextEditor(text: .constant(contents))
.textSelection(.enabled)
.font(.system(.body, design: .monospaced))
.padding(.all, 4)
ScrollView {
Text(contents)
.textSelection(.enabled)
.font(.system(.body, design: .monospaced))
.padding(.all, 4)
}
HStack {
Spacer()