Doruk Fisek | 15 Jun 10:42
Picon

copy-paste problem

Hi,

 When I mark and copy a text inside Tellico window, the text's put in
the clipboard but not selected as default. As a result when I paste it
into another application, the old clipboard item shows up.

 Each time I copy a text, I have to manually select the text from
klipper. Then I can use the text I copied from Tellico.

 Does anyone else experience the same problem?

                   Doruk

--
FISEK INSTITUTE - http://www.fisek.org.tr
Robby Stephenson | 10 Jul 06:19

Re: copy-paste problem

On Sunday 15 June 2008, Doruk Fisek wrote:
>  When I mark and copy a text inside Tellico window, the text's put in
> the clipboard but not selected as default. As a result when I paste it
> into another application, the old clipboard item shows up.
>
>  Each time I copy a text, I have to manually select the text from
> klipper. Then I can use the text I copied from Tellico.

I've poked at it a bit. Copy/paste is so funky on unix/linux with the 
selection clipboard and the other clipboard, that I think I should probably 
leave it alone.

First of all, Tellico basically copies the copy/paste code from 
kapplication.cpp. The reason I don't just call those functions is because I 
have the editor window. When the editor window is open, I want copy/paste 
to operate on the selected text in the editor, _not_ in the main window. So 
basically it checks to see if the dialog is open, then activates the 
appropriate widget.

Everything seems to work right when selecting in the editor dialog.

So maybe the specific detail is that you're selecting in the entry view, in 
the lower right? From what I can tell, the HTML doesn't have a copy() slot, 
so nothing happens when you ctrl-v, i.e. nothing gets dumped to the global 
clipboard, only to the selection.

Does that sound right?

Robby
(Continue reading)

Doruk Fisek | 10 Jul 10:00
Picon

Re: copy-paste problem

Wed, 9 Jul 2008 21:19:37 -0700, Robby Stephenson <robby@...> :

> Everything seems to work right when selecting in the editor dialog.
> So maybe the specific detail is that you're selecting in the entry
> view, in the lower right?
Yep, that's true. I just tested it, since I rarely use the editor window
(always use the import functions to create the entries) I hadn't
noticed it.

Copy-paste works right in editor window but doesn't in entry view.

> From what I can tell, the HTML doesn't have a copy() slot, so nothing
> happens when you ctrl-v, i.e. nothing gets dumped to the global
> clipboard, only to the selection.
> Does that sound right?
If I understood it correctly, yes, that sounds right.

                   Doruk

--
FISEK INSTITUTE - http://www.fisek.org.tr

Gmane