Re: Clipboard support using guacamole-common-js API

2017-11-21 Thread Amarjeet Singh
@Mike : I have tested with Chrome, Firefox , Edge and IE.

It's working. I will contribute it to review by Guacamole team or if any
necessary changes required.

On Tue, Nov 21, 2017 at 7:35 PM, Amarjeet Singh 
wrote:

> @Mike :  It is working : I am not facing the above issue as of now. I
> might be sending the wrong keys.
>
>
>
> On Tue, Nov 21, 2017 at 7:27 PM, Amarjeet Singh 
> wrote:
>
>> Hi Mike,
>>
>> I enabled Ctrl + V  ( Paste Event )  >>  then updated the guacClipboard
>>   << $scope.$broadcast('guacClipboard', data);  >> .
>>
>> Issue :  It was sending Ctrl + V  keys to the server and then the
>> clipboard data , therefore server is pasting older data and on the next
>> Ctrl + v , it is pasting the correct data.
>>
>> I stopped the guackeyDown broadcast  << $scope.$broadcast('guacBeforeKeyup',
>> keysym, keyboard); >>  only for Ctrl + V and first sent the clipboard data
>> to the server, now data is updated on the server >> then used
>> guacSyntheticKeydown to send ctrl and V keys .
>>
>> It is copying the correct data but with an issue.
>>
>>
>> Issue :  Suppose I have this text on the Notepad of the remote server "
>> Guacamole  | " , As you see the cursor is after the space, when I paste
>> text "amarjeet" from local to remote it becomes
>>
>> "Guacamoleamarjeet" : The space is not there.
>>
>>
>> Please share your suggestions. I would be very grateful to you.
>>
>> I am looking into it.
>>
>> Thanks and Regards,
>> Amarjeet Singh
>>
>> On Sat, Nov 18, 2017 at 10:23 AM, Mike Jumper 
>> wrote:
>>
>>> On Nov 17, 2017 17:40, "Amarjeet Singh"  wrote:
>>>
>>> ...
>>> I have added the clipboard support without any plugins or without
>>> pressing ctrl+shift+alt. for all browsers.
>>>
>>>
>>> Can you describe the nature of your changes?
>>>
>>> - Mike
>>>
>>>
>>
>


Re: Clipboard support using guacamole-common-js API

2017-11-21 Thread Amarjeet Singh
Hi Mike,

I enabled Ctrl + V  ( Paste Event )  >>  then updated the guacClipboard
<< $scope.$broadcast('guacClipboard', data);  >> .

Issue :  It was sending Ctrl + V  keys to the server and then the clipboard
data , therefore server is pasting older data and on the next Ctrl + v , it
is pasting the correct data.

I stopped the guackeyDown broadcast  <<
$scope.$broadcast('guacBeforeKeyup', keysym, keyboard); >>  only for Ctrl +
V and first sent the clipboard data to the server, now data is updated on
the server >> then used guacSyntheticKeydown to send ctrl and V keys .

It is copying the correct data but with an issue.


Issue :  Suppose I have this text on the Notepad of the remote server "
Guacamole  | " , As you see the cursor is after the space, when I paste
text "amarjeet" from local to remote it becomes

"Guacamoleamarjeet" : The space is not there.


Please share your suggestions. I would be very grateful to you.

I am looking into it.

Thanks and Regards,
Amarjeet Singh

On Sat, Nov 18, 2017 at 10:23 AM, Mike Jumper 
wrote:

> On Nov 17, 2017 17:40, "Amarjeet Singh"  wrote:
>
> ...
> I have added the clipboard support without any plugins or without pressing
> ctrl+shift+alt. for all browsers.
>
>
> Can you describe the nature of your changes?
>
> - Mike
>
>


Re: Clipboard support using guacamole-common-js API

2017-11-17 Thread Mike Jumper
On Nov 17, 2017 17:40, "Amarjeet Singh"  wrote:

...
I have added the clipboard support without any plugins or without pressing
ctrl+shift+alt. for all browsers.


Can you describe the nature of your changes?

- Mike