Using navigator object in Forge app

Hi, I would like to add possibility to copy Jira key and summary to clipboard from Issue view. I created app with jira:issueaction module, but I am unable to access navigator object to use clipboard.writeText function. It there any way to do that? Or are there any other options how to put data to clipboard (maybe not using Forge).

It looks like Custom UI can.

That’s right, you can access the navigator in Custom UI. Something like this will work:

<button onClick={() => {navigator.clipboard.writeText("Text to copy");}}>Copy to clipboard</button>