Bug 351708

Summary: Rename dialog no longer uses sane defaults.
Product: [Applications] dolphin Reporter: Tonurics <tonurics>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: emmanuelpescosta099
Priority: NOR    
Version: 16.12.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 15.08.1
Sentry Crash Report:

Description Tonurics 2015-08-24 19:12:54 UTC
When using the Rename dialog [inline rename disabled] the default focus is now on the "Rename" button, it should be focused on the input box containing the file name.

Additionally, when one uses the [Enter] key while the input box is focused, the rename operation is cancelled; the [Enter] key should cause the Rename action to proceed. The [Esc] key is used for cancelling (that is working correctly).

Reproducible: Always

Steps to Reproduce:
1. Highlight a file in dolphin.
2. Press the [F2] key.

Actual Results:  
1) Rename dialog appears with the "Rename" button focused.

2) Pressing the [Enter] key while the input box is focused cancels the rename operation.

Expected Results:  
1) Rename dialog appears with the input box focused.

2) Pressing the [Enter] key while the input box is focused confirms the rename operation.

KDE Frameworks 5.13.0
Qt 5.5.0 (built against 5.5.0)
The xcb windowing system
Comment 1 Emmanuel Pescosta 2015-09-06 17:41:27 UTC
Thanks for the bug report!

> Rename dialog appears with the "Rename" button focused.

I can reproduce this ...

> Pressing the [Enter] key while the input box is focused cancels the rename operation.

... but I can't reproduce this.

Review-Request: https://git.reviewboard.kde.org/r/125078/
Comment 2 Emmanuel Pescosta 2015-09-07 21:07:28 UTC
Git commit 4143a69c05be6da8a91c8ba0db505a47b22ddc75 by Emmanuel Pescosta.
Committed on 07/09/2015 at 20:58.
Pushed by emmanuelp into branch 'Applications/15.08'.

Rename dialog: Set focus to input text box on dialog show event.
FIXED-IN: 15.08.1
REVIEW: 125078

M  +7    -1    src/views/renamedialog.cpp
M  +3    -0    src/views/renamedialog.h

http://commits.kde.org/dolphin/4143a69c05be6da8a91c8ba0db505a47b22ddc75