buzz icon indicating copy to clipboard operation
buzz copied to clipboard

fix(desktop): try navigator.clipboard before arboard for npub/nsec copy

Open JoeJoeflyn opened this issue 4 months ago • 0 comments

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 typecheck
  • just desktop-standalone → copy npub and nsec → paste in a Wayland-native app → text present

Closes #2896

JoeJoeflyn avatar Jul 29 '26 10:07 JoeJoeflyn