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.
pull/8960/merge
Lukas 2025-10-30 05:30:03 +01:00 committed by GitHub
parent 4818c2b896
commit c7d5d1b9fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

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