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 651344 - Accelerators are allowed to trigger when renaming files
Accelerators are allowed to trigger when renaming files
Status: RESOLVED DUPLICATE of bug 619529
Product: nautilus
Classification: Core
Component: general
3.0.x
Other Linux
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-05-28 19:51 UTC by Mike Auty
Modified: 2012-08-23 09:24 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Mike Auty 2011-05-28 19:51:30 UTC
Hi there,

I'm not sure exactly which components sit where, so it's hard to say whether this is a nautilus bug or a gtk+ bug.  Basically, accelerators such as Delete can trigger when renaming a file in nautilus, whereas renaming a file should probably ignore accelerators whilst the name is being edited.

To recreate the issue:

1. Change the dconf setting of org.gnome.desktop.interface for can-change-accels to True.
2. Select a file (so that the menu item is enabled), then move the mouse over Edit > Move To Wastebasket.
3. Press Delete twice (the first time to remove the accelerator, the second to set it to Delete).
4. Rename the file, move the cursor to the middle of the filename, and then press Delete to remove letters from the filename, then press Enter.

Expected outcome:
The filename would change and the file would remain present.

Actual outcome:
The file is moved to the wastebasket.

nautilus-3.0.1.1
gtk+-3.0.9

I'd be happy to provide any further information I can, please just ask...
Comment 1 Mike Auty 2011-05-28 20:01:20 UTC
Hmmmm, seems from bug 362273, filed over five years ago, accelerators should and have always grabbed the focus from text entry widgets.  It looks like this is a nautilus regression after all then (since previous versions of nautilus were able to handle having a Delete accelerator without moving files unexpectedly).
Comment 2 Cosimo Cecchi 2012-08-23 09:24:12 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

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