PDA

View Full Version : Bug in copy/paste behavior of books



nephranka
July 24th, 2024, 16:42
I found a little bug in the copy/paste behavior of books. When I am copying and pasting from a pdf to a "text block" on a "new page" in a book the letter 'c' appears in the a text field that my cursor is currently located in when I hit the "text block" button.

Steps to recreate:
Open a book add a sub chapter and a new page
Put your cursor in the title of the new page
Goto the pdf and select text then control-c
Go back to FG and click the "text block" button on the new page
The letter 'c' will appear in the title

This can happen in any text field you leave your cursor. It is sometimes hit or miss as well.

Nylanfs
July 24th, 2024, 17:58
So it's typing in the FG dialog even though it's not in the foreground?

nephranka
July 24th, 2024, 18:27
No. When you comeback to FG to paste and hit the "text block" button then the 'c' appears wherever the cursor was last located. It appears out of thin air. Sometimes I am in the chat bar last and the 'c' will appear there. Once there was like 6 'c's there before I noticed it.

I suspect it has something to do with the control -c issue and 2.5d view that happened little while back. You kept moving the camera when you used the copy because of the keyboard control overlap. This may be an issue with that fix.

Moon Wizard
July 24th, 2024, 19:13
Those are in two completely different parts of the code; so unlikely to be related.

I just used these steps and did not see any issues:
* Create new CoreRPG campaign
* Click Library->Books->Campaign
* Click on New Chapter button
* Click on New Subchapter button
* Click on New Page button
* Click in header name field for new page on the right side of the Book window
* Alt-Tab to PDF view
* Select text using mouse
* Copy text using Control + C keys
* Alt-Tab back to FG
* Click on left-most button to add a section (Text Block)

I do not see any extraneous "c" characters in any fields.

Regards,
JPG

Zacchaeus
July 24th, 2024, 19:32
I'm not seeing this either following the steps outlined in your original post.

LordEntrails
July 24th, 2024, 19:42
What ruleset?
What operating system?
You duplicated in a new campaign with no extensions?

nephranka
July 24th, 2024, 21:06
What ruleset?
What operating system?
You duplicated in a new campaign with no extensions?

Dnd 5e
Linux
No extentions and a clean build

nephranka
July 24th, 2024, 21:09
Those are in two completely different parts of the code; so unlikely to be related.

I just used these steps and did not see any issues:
* Create new CoreRPG campaign
* Click Library->Books->Campaign
* Click on New Chapter button
* Click on New Subchapter button
* Click on New Page button
* Click in header name field for new page on the right side of the Book window
* Alt-Tab to PDF view
* Select text using mouse
* Copy text using Control + C keys
* Alt-Tab back to FG
* Click on left-most button to add a section (Text Block)

I do not see any extraneous "c" characters in any fields.

Regards,
JPG

Yeah...it is not everytime but it happens. The only difference I see in your steps is the alt-tab...I use two monitors and just mouse click select the windows.

Trenloe
July 24th, 2024, 21:31
I think Linux is the difference here. If you copy text from the PDF using the menu rather than control+c does the issue occur? (I'm assuming it won't).

nephranka
July 24th, 2024, 21:38
I think Linux is the difference here. If you copy text from the PDF using the menu rather than control+c does the issue occur? (I'm assuming it won't).

I will investigate and report back.

I though there is a chance linux could be my issue. Thanks for the suggestion.

superteddy57
July 24th, 2024, 23:49
I'm on Ubuntu and haven't run into this. But maybe another flavor might cause some issues.

nephranka
July 25th, 2024, 00:30
I'm on Ubuntu and haven't run into this. But maybe another flavor might cause some issues.

True. I am using Fedora.

nephranka
August 19th, 2024, 20:32
Well checking more it definitely does happen but not reproducible the same way each time. It does appear to take some time in the interface for it to start happening. The click copy/paste seems to avoid the issue so it may be a keyboard only issue and most likely a Fedora one on top of that. I just wanted to circle back since I said I would even though I don't expect a solution given the very specific issues surrounding it.