Bug 469449 - Delete key doesn't work when renaming a file or folder
Summary: Delete key doesn't work when renaming a file or folder
Status: RESOLVED DUPLICATE of bug 429403
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 23.08.1
Platform: Debian testing Linux
: NOR minor
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-07 13:25 UTC by Stefan Lux
Modified: 2023-10-12 02:54 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***