Bug 457386

Summary: Selecting / deselecting large portion of pasted text
Product: [Applications] kmail2 Reporter: mateMat <mathieu>
Component: composerAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: wishlist CC: montel
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description mateMat 2022-08-01 20:41:33 UTC
##WISHLIST##
Automatically reselecting the text after pasted can be useful for larger texts.
Just a simple UI improvement. Let me know if this would be nice to have.There might be a couple of use-case that slipped from my head.
 :)
I would like to know if we can allow, in the editor of kmail, the possibility to have an automatic selection of the pasted text that have more than 1 line?
For instance, when we paste a large text, we may paste at the wrong place, just a simple position error.

But if the user keep typing text with the keyboard, then the editor keeps writing and deselect the text pasted just before. This should avoid deleting the pasted text.

It is simple and improve the user experience.
Cheers
Comment 1 Laurent Montel 2022-08-02 05:36:56 UTC
If you have an error you can use CTRL+Z (undo :) )

Adding selected it's easy

but you write the potential problem with it:
"But if the user keep typing text with the keyboard, then the editor keeps writing and deselect the text pasted just before. This should avoid deleting the pasted text."
=> it's not easy to do it...