Comment 5 for bug 141226

Revision history for this message
Joachim Sauer (saua) wrote :

I realize that lack or ressources is the problem here. I hope that I can help by providing a patch, even if it's not perfect.

I have to note 'though that I haven't done any C development for ages and no GTK-development at all, so this fix might be very wrong, but it fixes the problem for me.

The problem seems to be that nautilus tries to active the search entry box for every key pressed except for a limited set. Backspace and Delete are not in this set, so they activate the search window, which then tries to consume the key press and beeps because Backspace and Delete are not valid actions on a currently empty entry box.

My fix simply won't forward BackSpace and Delete to the Searchentry. Backspace and Delete still seem to work correctly once the search entry is open, since then the search entry itself has the focus and its key-handling routine will be called (and not the one in nautilus-icon-container.c that I modified).