Bug 399273

Summary: when renaming and using the ctrl + shift + end or pgdn selection leaves the text area
Product: [Applications] krusader Reporter: Ariel Rosenfeld <ariel.rosenfeld.750>
Component: generalAssignee: Krusader Bugs Distribution List <krusader-bugs-null>
Status: REPORTED ---    
Severity: normal CC: alex.bikadorov, davide, krusader-bugs-null, victor.varvariuc
Priority: NOR    
Version First Reported In: 2.7.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Ariel Rosenfeld 2018-10-01 11:25:08 UTC
when renaming and using the ctrl + shift + end or pgdn the selection goes outside the text area and selects files like you arent renaming in a text area

the expected result is selecting and navigating to end of text area (end) or next word (pgdn)
Comment 1 Davide Gianforte 2019-07-13 20:18:21 UTC
*** Bug 318022 has been marked as a duplicate of this bug. ***
Comment 2 Davide Gianforte 2020-05-02 12:03:08 UTC
The KLineEditor we are using for renaming operation has its own shortcuts:

- CTRL + LEFT/RIGHT : move to the left/right word;
- CTRL + SHIFT + LEFT/RIGHT : select next left/right word;
- SHIFT + END : select text from cursor the to end;
- SHIFT + HOME : select text from cursor the to start;

Are these working for you?

The shortcut you have used are not taken by KLineEditor and are passed to the panel which effectively select a range of files (the fix could be to avoid some events while renaming a file).
Comment 3 Ariel Rosenfeld 2020-05-02 12:47:43 UTC
Yes, these shortcuts work correctly.

its just easier in a file with multiple dots in the name to skip to the end with CTRL + SHIFT + END and go back from the file extension then to move one word at a time.

so disabling the range of file selection when renaming would be very helpful.

thank you
Comment 4 Davide Gianforte 2020-05-08 10:34:17 UTC
Thanks for the tests