macOS: make text editor in clipboard confirmation non focusable (#9400)

With its being `focusable`(default), the first responder became the text
editor instead of the paste button.

This fixes the issue where one can't confirm with the keyboard.

This doesn't affect its selection.
This commit is contained in:
Lukas
2025-10-30 05:30:03 +01:00
committed by GitHub
parent 4818c2b896
commit c7d5d1b9fc

View File

@@ -52,6 +52,7 @@ struct ClipboardConfirmationView: View {
}
TextEditor(text: .constant(contents))
.focusable(false)
.font(.system(.body, design: .monospaced))
HStack {