After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 664573 - Delete key deletes file instead of removing character in location bar
Delete key deletes file instead of removing character in location bar
Status: RESOLVED DUPLICATE of bug 619529
Product: nautilus
Classification: Core
Component: Location Bar
3.3.x
Other Linux
: Normal critical
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-11-22 16:02 UTC by Nikolai Knopp
Modified: 2012-05-08 20:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed patch (1.68 KB, patch)
2011-12-15 02:24 UTC, Alexandre Rostovtsev
none Details | Review

Description Nikolai Knopp 2011-11-22 16:02:14 UTC
*Overview*
When modifying the path in the location bar, pressing the delete key removes the currently selected file instead of deleting the character right of the location bar text cursor.

*Steps to Reproduce*
NOTE: Location bar is turned on by default in my setup.
1) Open a nautilus window.
2) Select a file in the list (single left click).
3) Click into the location bar such that the cursor is surrounded by text.
4) Push the delete key.

*Actual Results*
The file selected in step 2) is moved to the trash.

*Expected Results*
The character right of the text cursor should have been deleted, and no file should be deleted.

*Build Date & Platform*
Nautilus 3.2.1 (from the about box)
Arch Linux package/version: extra/nautilus 3.2.1-1

*Additional Nautilus plugins installed*
extra/nautilus-open-terminal 0.19-2
extra/nautilus-sendto 3.0.1-2

I'm happy to provide any additionally required data.
Comment 1 Nelson Benitez 2011-11-29 20:11:09 UTC
Adding severity critical for possible data loss.
Comment 2 Nelson Benitez 2011-11-29 20:13:58 UTC
This bug may be related to bug 662591 ..
Comment 3 Alexandre Rostovtsev 2011-12-15 02:24:20 UTC
Created attachment 203546 [details] [review]
proposed patch

If an editable widget is currently focused (e.g. a GtkEntry in the location bar or the search bar), then NautilusWindow should forward key press events to that widget without handling them since the window's keyboard shortcuts may collide with the editable widget's. This is particularly important for users of ubuntu, gentoo, and other distros that have patched nautilus-3 to use the Delete key for deleting files (the Ctrl+Del shortcut is undiscoverable and unintuitive for the average user).
Comment 4 Leonardo Ferreira Fontenelle 2012-01-15 15:53:45 UTC
Similar issues: bug #591300 and bug #667962.
Comment 5 Cosimo Cecchi 2012-05-08 20:33:21 UTC
I fixed this last week for 3.5.1 in bug 619529 with a very similar patch - missed this bug in the huge bugzilla spam, sorry.
Closing as a duplicate of that one.

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