fix: support middle-click paste in text inputs

Paste the Linux primary selection at the clicked caret in shared input
fields, including identity import. Preserve read-only and disabled fields
and add Shift+Insert for clipboard paste. Cover mouse and keyboard paste
with GPUI interaction tests and document the supported gestures.

Co-Authored-By: GPT-6 <noreply@openai.com>
This commit is contained in:
2026-10-08 23:08:48 +02:00
co-authored by GPT-6
parent 193df36dae
commit 835dea1b83
5 changed files with 357 additions and 9 deletions
+8
View File
@@ -1,5 +1,13 @@
Coop is a simple, fast, and reliable nostr client for secure messaging across all platforms.
### Pasting into text fields
Click a field and use Ctrl+V (Cmd+V on macOS), or right-click and choose Paste.
Shift+Insert also pastes from the clipboard on Linux and Windows. On Linux,
middle-click inserts the primary selection at the clicked position: select text
in another application first, then middle-click the field. This also works in
the identity import dialog.
### License
Copyright (C) 2025 Ren Amamiya & other Coop contributors