v1.14 beta1: Ctrl-C does not copy selected text inside a textbox in the edit grid

Lists: pgadmin-hackers
From: Erwin Brandstetter <brsaweda(at)gmail(dot)com>
To: pgadmin-hackers(at)postgresql(dot)org
Subject: v1.14 beta1: Ctrl-C does not copy selected text inside a textbox in the edit grid
Date: 2011-04-29 14:55:15
Message-ID: 4DBAD153.7000700@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

Aloha!

Testing pgAdmin v1.14 beta1 on Win XP Home

Concerning ..
> 2010-08-30 GL 1.14.0 Allow the use of Ctrl-V inside a textbox of
frmEditGrid. Patch from Steffen Kuhn.

Ctrl-V now works fine to paste text.
If I select part of the text (in edit mode) and use "Copy" from the
context menu, the selected text is copied. As expected.

However, if I press Ctrl-C, the whole text is copied instead of the
selection. This should copy the selected text as well.
The problem has been there in previous versions.

Regards
Erwin


From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: Erwin Brandstetter <brsaweda(at)gmail(dot)com>
Cc: pgadmin-hackers(at)postgresql(dot)org
Subject: Re: v1.14 beta1: Ctrl-C does not copy selected text inside a textbox in the edit grid
Date: 2011-04-30 07:23:36
Message-ID: 4DBBB8F8.7010508@lelarge.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

Le 29/04/2011 16:55, Erwin Brandstetter a écrit :
> [...]
> Testing pgAdmin v1.14 beta1 on Win XP Home
>
> Concerning ..
>> 2010-08-30 GL 1.14.0 Allow the use of Ctrl-V inside a textbox of
> frmEditGrid. Patch from Steffen Kuhn.
>
> Ctrl-V now works fine to paste text.
> If I select part of the text (in edit mode) and use "Copy" from the
> context menu, the selected text is copied. As expected.
>
> However, if I press Ctrl-C, the whole text is copied instead of the
> selection. This should copy the selected text as well.
> The problem has been there in previous versions.
>

Works for me on Linux. And I don't see anything in the code that would
make it a Windows only bug. Are you sure?

--
Guillaume
http://www.postgresql.fr
http://dalibo.com


From: Erwin Brandstetter <brsaweda(at)gmail(dot)com>
To: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Cc: pgadmin-hackers(at)postgresql(dot)org
Subject: Re: v1.14 beta1: Ctrl-C does not copy selected text inside a textbox in the edit grid
Date: 2011-04-30 07:34:14
Message-ID: 4DBBBB76.3040108@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

On 30.04.2011 09:23, Guillaume Lelarge wrote:
> Le 29/04/2011 16:55, Erwin Brandstetter a écrit :
>> [...]
>> Testing pgAdmin v1.14 beta1 on Win XP Home
>>
>> Concerning ..
>>> 2010-08-30 GL 1.14.0 Allow the use of Ctrl-V inside a textbox of
>> frmEditGrid. Patch from Steffen Kuhn.
>>
>> Ctrl-V now works fine to paste text.
>> If I select part of the text (in edit mode) and use "Copy" from the
>> context menu, the selected text is copied. As expected.
>>
>> However, if I press Ctrl-C, the whole text is copied instead of the
>> selection. This should copy the selected text as well.
>> The problem has been there in previous versions.
>>
> Works for me on Linux. And I don't see anything in the code that would
> make it a Windows only bug. Are you sure?

Yes, I am sure. The bug has been there for a while. I had hoped v1.14
would have fixed it ...
Probably a Windows only bug.

Regards
Erwin


From: Erwin Brandstetter <brsaweda(at)gmail(dot)com>
To: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Cc: pgadmin-hackers(at)postgresql(dot)org
Subject: Re: v1.14 beta1: Ctrl-C does not copy selected text inside a textbox in the edit grid
Date: 2011-04-30 07:43:24
Message-ID: 4DBBBD9C.5080001@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

On 30.04.2011 09:23, Guillaume Lelarge wrote:
> Le 29/04/2011 16:55, Erwin Brandstetter a écrit :
>> [...]
>> Testing pgAdmin v1.14 beta1 on Win XP Home
>>
>> Concerning ..
>>> 2010-08-30 GL 1.14.0 Allow the use of Ctrl-V inside a textbox of
>> frmEditGrid. Patch from Steffen Kuhn.
>>
>> Ctrl-V now works fine to paste text.
>> If I select part of the text (in edit mode) and use "Copy" from the
>> context menu, the selected text is copied. As expected.
>>
>> However, if I press Ctrl-C, the whole text is copied instead of the
>> selection. This should copy the selected text as well.
>> The problem has been there in previous versions.
>>
> Works for me on Linux. And I don't see anything in the code that would
> make it a Windows only bug. Are you sure?

A detail that might help: when copying with Ctrl-C the _original_ state
of the textbox is copied.
Example:
A text field reads "dummy text".
I enter edit mode and change it to "11dummy11 22text22"
Then I select any part of the text and press Ctrl-C, Ctrl-V: "dummy
text" is inserted - the original text of the field before entering edit
mode.
BTW, pasting via context-menu does exactly the same as Ctrl-V. Only
Ctrl-C deviates.

Regards
Erwin


From: Erwin Brandstetter <brsaweda(at)gmail(dot)com>
To: pgadmin-hackers(at)postgresql(dot)org
Cc: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Subject: Re: v1.14 beta1: Ctrl-C does not copy selected text inside a textbox in the edit grid
Date: 2011-08-30 16:26:25
Message-ID: 4E5D0F31.8080402@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

Aloha!

On 30.04.2011 09:43, Erwin Brandstetter wrote:
> On 30.04.2011 09:23, Guillaume Lelarge wrote:
>> Le 29/04/2011 16:55, Erwin Brandstetter a écrit :
>>> [...]
>>> Testing pgAdmin v1.14 beta1 on Win XP Home
>>>
>>> Concerning ..
>>>> 2010-08-30 GL 1.14.0 Allow the use of Ctrl-V inside a textbox of
>>> frmEditGrid. Patch from Steffen Kuhn.
>>>
>>> Ctrl-V now works fine to paste text.
>>> If I select part of the text (in edit mode) and use "Copy" from the
>>> context menu, the selected text is copied. As expected.
>>>
>>> However, if I press Ctrl-C, the whole text is copied instead of the
>>> selection. This should copy the selected text as well.
>>> The problem has been there in previous versions.
>>>
>> Works for me on Linux. And I don't see anything in the code that would
>> make it a Windows only bug. Are you sure?
>
> A detail that might help: when copying with Ctrl-C the _original_ state of the textbox is copied.
> Example:
> A text field reads "dummy text".
> I enter edit mode and change it to "11dummy11 22text22"
> Then I select any part of the text and press Ctrl-C, Ctrl-V: "dummy text" is inserted - the original text of the field before entering edit mode.
> BTW, pasting via context-menu does exactly the same as Ctrl-V. Only Ctrl-C deviates.

The bug is still there in v1.14.0 RC1. I have created a ticket.
http://code.pgadmin.org/trac/ticket/337

It can be a pain, because Ctrl-C and Ctrl-V are probably the most frequently used key combinations of all.

Regards
Erwin


From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: Erwin Brandstetter <brsaweda(at)gmail(dot)com>
Cc: pgadmin-hackers(at)postgresql(dot)org
Subject: Re: v1.14 beta1: Ctrl-C does not copy selected text inside a textbox in the edit grid
Date: 2011-09-02 17:46:40
Message-ID: 1314985600.2288.8.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

On Tue, 2011-08-30 at 18:26 +0200, Erwin Brandstetter wrote:
> Aloha!
>
> On 30.04.2011 09:43, Erwin Brandstetter wrote:
> > On 30.04.2011 09:23, Guillaume Lelarge wrote:
> >> Le 29/04/2011 16:55, Erwin Brandstetter a écrit :
> >>> [...]
> >>> Testing pgAdmin v1.14 beta1 on Win XP Home
> >>>
> >>> Concerning ..
> >>>> 2010-08-30 GL 1.14.0 Allow the use of Ctrl-V inside a textbox of
> >>> frmEditGrid. Patch from Steffen Kuhn.
> >>>
> >>> Ctrl-V now works fine to paste text.
> >>> If I select part of the text (in edit mode) and use "Copy" from the
> >>> context menu, the selected text is copied. As expected.
> >>>
> >>> However, if I press Ctrl-C, the whole text is copied instead of the
> >>> selection. This should copy the selected text as well.
> >>> The problem has been there in previous versions.
> >>>
> >> Works for me on Linux. And I don't see anything in the code that would
> >> make it a Windows only bug. Are you sure?
> >
> > A detail that might help: when copying with Ctrl-C the _original_ state of the textbox is copied.
> > Example:
> > A text field reads "dummy text".
> > I enter edit mode and change it to "11dummy11 22text22"
> > Then I select any part of the text and press Ctrl-C, Ctrl-V: "dummy text" is inserted - the original text of the field before entering edit mode.
> > BTW, pasting via context-menu does exactly the same as Ctrl-V. Only Ctrl-C deviates.
>
> The bug is still there in v1.14.0 RC1. I have created a ticket.
> http://code.pgadmin.org/trac/ticket/337
>
> It can be a pain, because Ctrl-C and Ctrl-V are probably the most frequently used key combinations of all.
>

If only I could reproduce it...

--
Guillaume
http://blog.guillaume.lelarge.info
http://www.dalibo.com