GNOME Bugzilla – Bug 599680
Shortcuts often don't work for the first time
Last modified: 2010-07-29 07:28:17 UTC
Many shortcuts don't work for the first time. For example I have bound "display home folder" on Win+S combination. After I log in, it almost every time doesn't work the first time I press the combination. Nothing happens. When I press it again, Nautilus window pops up. But this happens not only after log in, but also after some time - I really don't know how long, it can be 30 minutes, maybe more. Then it again doesn't work for the first press, works on the second press. Similarly (and more substantially) this also happens for clipboard shortcuts. I'm going quite mad that Ctrl+c/Ctrl+x doesn't work so often. I experience it at least several times a day (all in one session), maybe even several times an hour(!). Ctrl+c just does nothing, only after second (or third) press is the file finally copied to clipboard (which you can determine by looking at the Nautilus status bar). I see these symptoms on both Ubuntu 9.04 and Fedora 11, it is not distro-specific. Also I can vouch for not having broken keyboard, because I see this on several different hardware setups. Annoying is that it is very hard to reproduce. It just works most of the time, but when you are not trying it for a long enough, then it just doesn't work for *once* and works again. This issue is one of the most pains I currently notice in Gnome.
The same bug has been reported at Launchpad in Ubuntu at <https://launchpad.net/bugs/390662>. It is indeed a very irritating bug. (I personally can confirm this as well.)
Created attachment 163064 [details] [review] patch (format-patch output)
Confirming. It would be useful to have a description of which shortcuts this affects and which it doesn't.
At least 'Del', 'Ctrl+C', 'Ctrl+X' and I believe 'Ctrl+V' as well are affected. I guess all short cuts related to operations on selected files don't work, but someone should test that.
From what I can see, all file manipulation related shortcuts: CTRL+{C,X,V}, F2, Delete. Browsing keys work (arrows, enter, space).
The affected shortcuts are any which only become available after a file has been selected. This of course includes the clipboard actions C-x C-c C-v, rename F2, delete DEL, make link C-m, open C-o, and perhaps others. The reason for the wide range of affected shortcuts is that there is a delayed call to real_update_menus(), as I described in more detail on the mailing list: <http://mail.gnome.org/archives/nautilus-list/2010-June/msg00023.html>.
*** Bug 606619 has been marked as a duplicate of this bug. ***
The patch seems to be right and works fine; I applied it to master.
*** Bug 137455 has been marked as a duplicate of this bug. ***
*** Bug 623249 has been marked as a duplicate of this bug. ***