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: 2023-07-10 18:44 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