Re: Send PrintScreen key to the Remote Desktop
On Sat, Mar 3, 2018 at 5:05 AM, Amarjeet Singhwrote: > Hi Mike, > > Would that be fine if I create a JIRA ticket for a feature request for > sending PrintScreen Key to Remote desktop ? > > Yes. The scancode mapping for the Print Screen key is missing from the base keymap used by Guacamole's RDP support, and this should be fixed. I would consider this a bug, though it is unlikely to result in problems for most users as the OS will almost always intercept handling of that key (thus users will typically be unable to use the Print Screen key regardless of whether it is defined). This is probably also a good time to review the base keymap and see if any other definitions may be missing. - Mike
Re: Send PrintScreen key to the Remote Desktop
On Thu, Feb 8, 2018 at 11:25 PM, Amarjeet Singhwrote: > ... > I tried to send both keydown and keyup as well but didn't worked. > > Any suggestions. > > Can't we send keysym as we send for normal keys ( a - z or A-Z or 0-9 ) ? > > If the "printscreen" key is not working for RDP specifically, and it is working with other RDP clients, that suggests that the key is simply not mapped to a scancode. Checking the base keymap, I don't see a mapping for this key: https://github.com/apache/guacamole-server/blob/3187a641cf915f5d8d0a0e1b8b481442fcfe26c5/src/protocols/rdp/keymaps/base.keymap If that is the reason this isn't working, you should see a message in your guacd logs regarding the lack of mapping for that key, and adding support for that key would be a matter of determining what scancode, flags, etc. needs to be sent. - Mike
Re: Send PrintScreen key to the Remote Desktop
PrintScreen can be captured while Keyup and the keysym is already there in guacamole.js which I tried to send it to the server but didn't worked. Sending the keysym of Printscreen to the RDP server is not copying the image to the remote clipboard. I tried to send both keydown and keyup as well but didn't worked. Any suggestions. Can't we send keysym as we send for normal keys ( a - z or A-Z or 0-9 ) ? On Thu, Feb 8, 2018 at 10:17 PM, Nick Couchmanwrote: > On Thu, Feb 8, 2018 at 5:49 AM, Amarjeet Singh > wrote: > >> Hi Team, >> >> I am unable to use PrintScreen key. >> >> Guacamole is not sending the PrintScreen key to the RDP Desktop. >> >> It is not captured by keydown event but is captured during onkeyup event >> and released by the Guacamole. >> >> > The most likely explanation for this is that the client system is > capturing it before it even gets to the Web Browser. Print Screen is > fairly universally captured by desktop operating systems, and each of them > behave slightly differently in what they do with that key combo. Windows > takes an image and copies it to the clipboard. Many Linux Window Managers > bring up a dialog with the image and ask you what you want to do. Can't > remember on Mac. The point is, if you want the Print Screen event passed > through to the browser, you need to configure the O/S not to intercept it > (if possible). > > -Nick >