Bug 254356

Summary: CTRL-C is working in "Rename Item" dialog
Product: [Applications] dolphin Reporter: Young <since1992>
Component: generalAssignee: Peter Penz <peter.penz19>
Status: RESOLVED WORKSFORME    
Severity: normal CC: markg85
Priority: NOR    
Version First Reported In: 16.12.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Young 2010-10-16 12:27:58 UTC
Version:           unspecified (using KDE 4.5.2) 
OS:                Linux

Dolphin 4.5

Keyboard shortcut for copy selected texts or files is CTRL-C. It works in Dolphin. But it doesn't work in "Rename Item" dialog box. First, I asked this in KDE forum. I found a person who can regenerate the same result like me. Thank you.

Reproducible: Always

Steps to Reproduce:
1. select a file
2. press F2
3. press CTRL-C
4. press CTRL-V


Actual Results:  
5. It paste the last copied text that was one before I copied in "Rename Item" dialog.

Expected Results:  
It is supposed to paste file name I copied in "Rename Item" dialog by pressing CTRL-C

http://forum.kde.org/viewtopic.php?f=66&t=90885
Comment 1 Young 2010-10-16 12:33:09 UTC
Dolphin version is 1.5. Thank you.
Comment 2 Mark 2010-10-18 01:25:26 UTC
I followed your exact steps and it simply works for me. Using trunk though so if it is a bug it might be fixed already.

If someone else could reconfirm this works (in trunk and 4.5.2)?
Comment 3 Peter Penz 2010-10-18 16:32:26 UTC
I've verified this issue with KDE 4.5.2 with inline-renaming and renaming by the dialog. In both cases Ctrl+C, Ctrl+V works as expected using the steps from the report. I think the steps above miss probably some information - e.g. is the Ctrl+V executed inside the rename dialog or inside another window? Doing it in the rename dialog will of course replace the current selection that has been copied and hence nothing changes. I tested it by pasting it in a second window and there it works as expected.
Comment 4 Young 2010-10-20 06:30:18 UTC
Please test another step.

1. select a file in Dolphin
2. press F2
3. press CTRL-C (copying a selected file name)
4. Close the dialog
5. select another file in Dolphin
6. press F2
7. press CTRL-V (replacing a selected file name with a copied file name) and press rename button.

In my test, text, "over-writing" was copied into clipboard. I made two files. One is named "org.txt". The other one is named "new.txt". In step 6, the text "new" was selected. The result of step 7, the file name  became "over-writing.txt". Expected result is "org.txt" or "org.txt(1)"
Comment 5 Peter Penz 2010-10-20 08:49:02 UTC
I tried again with the steps of comment #4, but everything works as expected. I'm confused that in your descriptions you have the strings "over-writing", "org.txt", "new.txt" instead of just having 2 strings. Following your steps 1 to 7 you should only have 2 strings. So what I did is:

1. Select file "a.txt" in Dolphin
2. Press F2 -> rename dialog is opened, the letter "a" is selected
3. Press Ctrl+C -> "a" is copied into the clipboard
4. Close dialog
5. Select file "b.txt"
6. press F2 -> rename dialog is opened, the letter "b" is selected
7. Press Ctrl+V -> "b" gets replaced by "a" as expected
Comment 6 Young 2010-10-21 10:55:54 UTC
Dear Peter Penz, Thanks for your helps.

Most of cases, I have something in the clipboard. "over-writing" was an example of something in the clipboard.

I guess it must be another problem if the keyboard shortcut works in your machine. Thank you.