Bug 469449

Summary: Delete key doesn't work when renaming a file or folder
Product: [Applications] dolphin Reporter: Stefan Lux <stefan.lux>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: minor CC: ben, fanzhuyifan, kfm-devel
Priority: NOR    
Version: 23.08.1   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=429403
Latest Commit: Version Fixed In:

Description Stefan Lux 2023-05-07 13:25:53 UTC
SUMMARY
***
When renaming a file or folder, the keyboard's delete key doesn't work. This seems to be related to the global shortcut for "Move to Trash" in the System Settings. As long the default of "Del" is selected, it works. If it is unchecked, the delete key is ignored while renaming files. Assigning custom shortcuts has no effect either way.
***

STEPS TO REPRODUCE
1. Open System Settings
2. Go to Workspace -> Shortcuts
3. Go to Common Actions -> File -> Move to Trash
4. Uncheck the default shortcut "Del"
5. Open Dolphin
6. Select a file or folder
7. Press F2 or select "Rename" from the context menu
8. Press the Delete key

OBSERVED RESULT
The input is ignored

EXPECTED RESULT
The selected text should be deleted, or if nothing was selected, the character to the right of the cursor should be deleted.

SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux 12
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.0-7-amd64 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Changing the shortcuts in Dolphin instead of globally doesn't have the same effect.
Comment 1 Ben Bonacci 2023-05-10 11:13:40 UTC
I can also reproduce this in Plasma 5.27.5 with Dolphin 23.04.0 and I got the same behavior the reporter encountered. This issue also appears to only affect Dolphin as I couldn't reproduce the problem in other programs.
Comment 2 fanzhuyifan 2023-10-12 02:44:31 UTC
Can reproduce using the exact same steps as reported.

Operating System: Arch Linux 
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.11
Kernel Version: 6.5.6-273-tkg-eevdf-llvm (64-bit)
Graphics Platform: X11
Processors: 20 × 13th Gen Intel® Core™ i9-13900H
Memory: 15.2 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: ROG Zephyrus G16 GU603VV_GU603VV
System Version: 1.0
Comment 3 fanzhuyifan 2023-10-12 02:54:25 UTC
This is a special case of 429403, where the original shortcut is removed but no custom shortcut is assigned. This also leads to the delete key not working in the text field of many apps.

*** This bug has been marked as a duplicate of bug 429403 ***