Re: [PATCH] Bind "escape" in temporary showing location entry to



Am Freitag, den 29.07.2005, 14:25 -0300 schrieb Matthew Thomas:
> Christian Neumair wrote:
> > Bug 311652 [1] complains that there is no obvious way to switch back
> > from the location bar to the path bar. The attached patch makes
> > Nautilus switch back to the path bar when the user presses escape in
> > the location bar.
> >...
> 
> In Web browsers -- including Firefox, Epiphany 1.7.2 and later (modulo
> bugs), Safari, and Internet Explorer, but not Konqueror -- it is
> standard for Escape in the location field to restore the contents of the
> field to the URL of the current location. While Nautilus has a location
> field, it would probably be a good idea to be consistent with this
> convention, rather than using Escape for something else.

Thanks for bringing this up! 
Ironically, the patch does exactly this when the gconf key
"/apps/nautilus/preferences/always_use_location_entry" is TRUE, although
I didn't even know that recent browser versions behave in that way.
I think the behavior introduced by the patch is right when using a path
bar as well, since entering a location is really a power user feature
and after triggering it accidentally there should be a cancellation
mechanism - using escape is sane and obvious. I think it was Alan Horkan
from our usability team who once wrote that escape should be the key for
immediately dropping everything on the floor. Plus, it only costs you an
additional ctrl-l keypress after pressing escape to be able to edit the
location again. I've just made some more tests and I think how it
behaves feels totally right and natural, except for a little
inconsistency that Escape doesn't restore the selection state when the
entry was brought up if you don't use a path bar.
Maybe you also have time to apply the patch and play a bit around, I'd
really appreciate feedback. That's why it would be nice to get this into
Nautilus *before* beta2 to get feedback from a wider audience.
On a sidenote: Do firefox/epiphany select the old text when pressing
escape, do they remove the input focus from the location bar, or do they
just restore the text? Where is the cursor position afterwards?

-- 
Christian Neumair <chris gnome-de org>

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]