[ https://issues.apache.org/jira/browse/GUACAMOLE-1678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17807667#comment-17807667 ]
Jimmy commented on GUACAMOLE-1678: ---------------------------------- [~vnick] I've found the root cause. That's because *popSelection()* is called in *setLocalClipboard()* function of guacamole/src/main/frontend/src/app/clipboard/services/clipboardService.js whenever typing a character So, it always resets the textarea element and this issue happens. In the insecure context, the Asynchronous Clipboard API (navigator.clipboard) doesn't work. When this API doesn't work, the guacamole client uses the deprecated clipboard commands such as "copy". The guacamole client doesn't currently support the clipboard of the non-text content. So, I think that we can remove the calls of *pushSelection()* and *popSelection()* in *setLocalClipboard()* function. These code were added for supporting the non-text content: https://github.com/apache/guacamole-client/commit/ea5ee1825b2190d2c62b3873d20e275377b059ab#diff-4ddbb4b2c8614d2a96a40029a5fcf77c53996be63ea3584df6ff452a5a60162cR172-R197 I've created a pull request for this: [https://github.com/apache/guacamole-client/pull/945] Thanks. > Can't type in clipboard and to type every character will have to reclick on > clipboard > ------------------------------------------------------------------------------------- > > Key: GUACAMOLE-1678 > URL: https://issues.apache.org/jira/browse/GUACAMOLE-1678 > Project: Guacamole > Issue Type: Bug > Components: guacamole > Affects Versions: 1.4.0 > Environment: Debian 11 - tomcat9 - Microsoft Edge > Reporter: Bryar Ghafoor > Priority: Trivial > Attachments: Screenshot_1.png, image-2024-01-16-21-57-08-828.png > > > Hello guys, > I'm dealing with this issue and I can't really figure it out after some time > looking into the code but during my debugging, I found the event related to > this issue. > The issue is with the clipboard, I can type into the clipboard but the > problem is can't type more than one character to write another single > character will have to re-click on the clipboard or it doesn't type at all. I > mean it is not like it has no focus it has focus but doesn't type .. > I have checked out events on the clipboard elements the issue disappeared > after removing the second event on input of the clipboard then I can start > typing into the clipboard normally but after this can't paste the updated > text of the clipboard to the client.. > Short video of the log: [03.09.2022_02.12.28_REC > (screenrec.com)|https://screenrec.com/share/tGmrJWESs6] > > > Also will attach a screenshot of the event I removed .. > > Thanks for helping.. I have really even downloaded the default > guacamole.1.4.war file from the Apache Guacamole page. but the error occurs.. -- This message was sent by Atlassian Jira (v8.20.10#820010)