Unable to Copy to Remote Clipboard using Guacamole js Library

I am working on a project where I need to copy text from my local machine and paste it into a remote machine using the Guacamole JavaScript library.
I have tried to implement this by listening to the paste event on my local machine and then sending the clipboard data to the remote machine using Guacamole’s clipboard stream. However, I am facing an issue where the paste event is not being triggered when I paste text.
I have tried adding the paste event listener to both the document and window objects, but neither approach seems to work. I have also tried creating a hidden editable field that always has focus, but the paste event is still not being triggered.

What I Tried and Expected: I expected that when I paste text on my local machine, the paste event would be triggered, and the clipboard data would be sent to the remote machine. I tried to achieve this by adding a paste event listener to the document and window objects, and by creating a hidden editable field that always has focus. I also tried to send the clipboard data to the server using the sendClipboardData function of the Guacamole.Client object. However, none of these approaches worked, and the paste event is still not being triggered when I paste text.