Bug 508438

Summary: In the "File Already Exists" dialogue window it's impossible to choose & activate "Overwrite" using Enter keyboard navigation + visual issues when "Overwrite" is highlighted
Product: [Frameworks and Libraries] frameworks-kio Reporter: Luca <pglpm>
Component: Overwrite dialogAssignee: Pan Zhang <zhangpan>
Status: ASSIGNED ---    
Severity: normal CC: dolphin-bugs-null, filip.kendes1, kdelibs-bugs-null, postix, zhangpan
Priority: NOR    
Version First Reported In: 6.17.0   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: showcase
Pressed enter

Description Luca 2025-08-18 20:06:59 UTC
SUMMARY

When you rename or copy a file, if the new name already exists then a dialogue window appear, "File Already Exists",  giving information about source and destination, a field with the current name, and three buttons: "Suggest New Name", "Rename", "Overwrite", "Cancel".

It is impossible to choose the "Overwrite" button by keyboard navigation (up, down, left, right, tab, space, enter) alone. For instance, pressing Tab twice seems to highlight "Overwrite", but "Cancel" is executed instead.

In previous versions of Dolphin (Kubuntu 20.04) the "Overwrite" button could be reached and activated with Tab+Tab+Enter.


STEPS TO REPRODUCE
1. In a directory, create two dummy files with dummy names, say "Atemp.txt" and "Btemp.txt"
2. Rename "Btemp.txt", for instance by slowly double-clicking on the file name, or by selecting "Rename..." from the right-click menu. Rename it to "Atemp.txt".
3. In the "File Already Exists" dialogue window that appears, try to choose and activate "Overwrite" by keyboard navigation, for instance pressing Tab, Tab, Enter.

OBSERVED RESULT

The file isn't renamed & overwritten, the resulting operation is "Cancel".

EXPECTED RESULT

An "Overwrite" operation.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 24.04.3 LTS 24.04 (x86_64)
KDE Plasma Version: 5.27.12
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.13

ADDITIONAL INFORMATION
Comment 1 Filip 2025-08-19 14:09:01 UTC
KDE Frameworks Version: 5.115.0 is not supported anymore. 

With that being said. I do see an issue with keyboard navigation. I'm able to click Overwrite button via Space, but not with Enter, and there is a visual bug when the Overwrite button is selected so I'll confirm this and move to correct product/component.

Please note that it won't be fixed in 5.X versions. It's up to the Debian team to decide what they will do with it.
Comment 2 Filip 2025-08-19 14:09:44 UTC
Created attachment 184257 [details]
showcase
Comment 3 Filip 2025-08-19 14:12:31 UTC
Created attachment 184260 [details]
Pressed enter
Comment 4 Luca 2025-08-20 04:51:35 UTC
(In reply to Filip from comment #1)
> KDE Frameworks Version: 5.115.0 is not supported anymore. 
> 
> With that being said. I do see an issue with keyboard navigation. I'm able
> to click Overwrite button via Space, but not with Enter, and there is a
> visual bug when the Overwrite button is selected so I'll confirm this and
> move to correct product/component.
> 
> Please note that it won't be fixed in 5.X versions. It's up to the Debian
> team to decide what they will do with it.

Thank you for confirming. With my Plasma version not even Space works to activate Overwrite. What I'm using now is Alt+O, which luckily works. So OK if it won't be fixed in 5.X versions; I'm happy if it gets fixed in newer ones :)
Comment 5 Bug Janitor Service 2025-11-10 01:35:28 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/2052