Bug 131805 - copy and paste with mouse leaves focus on copied text
Summary: copy and paste with mouse leaves focus on copied text
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All Linux (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Paste
  Show dependency treegraph
 
Reported: 2020-04-01 20:35 UTC by goodguy00@zoho.com
Modified: 2025-07-10 03:11 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
active copy-field after paste (92.45 KB, image/jpeg)
2020-06-15 09:42 UTC, goodguy00@zoho.com
Details

Note You need to log in before you can comment on or make changes to this bug.
Description goodguy00@zoho.com 2020-04-01 20:35:40 UTC
Description:
within a document, when marking text with mouse and pasting it with middle-button, the focus stays on the marked source text. this is in contrast to all editors i know, where the focus/cursor is placed after the pasted text.
consequence: when pasting and continuing to type, the highligted source text gets erased and new text is entered there. yes, it can be undone with ctrl-z, but the behavior is highly confusing and inconsistent with other ui experiences.
i fell about a hundred times into this trap, which always distorts my text flow, so i though i give it a try here.

Steps to Reproduce:
1. mark text with mouse
2. paste text in same document somewhere
3. immediately type something

Actual Results:
source (marked text) gets erased. focus is in wrong/inconsistent place. highly confusing.

Expected Results:
focus/cursor should be placed after the pasted text. this would be consistent with experience in other editors.


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
well, this behavior is present in all versions of libreoffice writer. it seemes to have been there for a long time ...
Comment 1 Dieter 2020-05-19 08:28:45 UTC
I can't confirm it with

Version: 7.0.0.0.alpha1+ (x64)
Build ID: 99c337d1d3831ce9d2c7dc1cbff713f4ac49d6ac
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win; 
Locale: en-GB (de_DE); UI: en-GB
Calc: CL

But I only have a mouse with left and right button.


To be certain the reported issue is not related to corruption in the user profile, could you please reset your Libreoffice profile (https://wiki.documentfoundation.org/UserProfile) and re-test?

I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the issue is still present.
Comment 2 goodguy00@zoho.com 2020-06-15 09:39:54 UTC
temporarily reset profile, same behavior confirmed.
Comment 3 goodguy00@zoho.com 2020-06-15 09:42:58 UTC
Created attachment 162005 [details]
active copy-field after paste

screenshot taken after paste (at the end of text). clearly the copy-region is still active, so when entering text, THAT region gets overwritten. instead, text input should be after the paste region.
Comment 4 Buovjaga 2021-04-28 15:21:38 UTC
Reproduced

Arch Linux 64-bit
Version: 7.2.0.0.alpha0+ / LibreOffice Community
Build ID: 9658115370bf33c2fdb68a3b759cf2f9d9e7c6c1
CPU threads: 8; OS: Linux 5.11; UI render: default; VCL: gtk3
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 28 April 2021
Comment 5 QA Administrators 2023-04-29 03:29:24 UTC Comment hidden (obsolete)
Comment 6 Jojo 2023-07-10 18:44:49 UTC
I can confirm that the bug is present in

Version: 7.5.5.1 (X86_64) / LibreOffice Community
Build ID: 2c5e46c1980ec5241359fd65d751dc518205e7af
CPU threads: 4; OS: Linux 6.3; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 7 QA Administrators 2025-07-10 03:11:35 UTC
Dear goodguy00@zoho.com,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug