buzz
buzz copied to clipboard
fix(desktop): try navigator.clipboard before arboard for npub/nsec copy
Summary
- Try navigator.clipboard.writeText before the Tauri/arboard path in MembershipDenied and NsecMaskedDisplay copy buttons.
- Implement the text-selection fallback in MembershipDenied that the catch block only commented about before.
Root cause
arboard without wayland-data-control writes to the XWayland clipboard, which Wayland-native apps never see. set_text returns Ok so the checkmark fires with an empty clipboard.
Verification
pnpm run typecheckjust desktop-standalone→ copy npub and nsec → paste in a Wayland-native app → text present
Closes #2896