[Sugar-devel] Browse feature review for Google Code In - Clear URL bar when Escape is pressed.

Sai Vineet saivineet89 at gmail.com
Tue Nov 19 02:37:15 EST 2013


Here's the modified patch as per James Cameron's requirements.


On Tue, Nov 19, 2013 at 3:24 AM, James Cameron <quozl at laptop.org> wrote:

> Tested-by: James Cameron <quozl at laptop.org>
>
> - it works for me, discarding both the URL text, hiding the X delete
>   icon, and hiding the history search results.
>
> - the single key press solution is acceptable to me, having to press
>   escape twice would be irritating,
>
> Reviewed-by: James Cameron <quozl at laptop.org>
>
> - the patch narrative might have more text in subsequent lines
>   describing the problem and how it is solved, with a reference to the
>   Sugar Labs ticket number.
>
> On Tue, Nov 19, 2013 at 12:53:12AM +0530, Sai Vineet wrote:
> > I've attached the patch. It is a one liner.
> > The mentors in GCI, namely Walter Bender and Gonzalo Odiard, told me
> that this
> > review may take time, so I should move on the other tasks after
> unclaiming this
> > task.
> >
> > Please review this fast. Thank you!
>
> > From 79a02c411594eacf4af2d796e6c1acfb7a241317 Mon Sep 17 00:00:00 2001
> > From: Sai Vineet <saivineet89 at gmail.com>
> > Date: Mon, 18 Nov 2013 23:56:40 +0530
> > Subject: [PATCH 1/1] Added clear URL bar with Escape key feature
> >
> > ---
> >  webtoolbar.py |    1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/webtoolbar.py b/webtoolbar.py
> > index b6ad558..2fb98f5 100644
> > --- a/webtoolbar.py
> > +++ b/webtoolbar.py
> > @@ -231,6 +231,7 @@ class WebEntry(iconentry.IconEntry):
> >              return True
> >          elif keyname == 'Escape':
> >              self._search_window.hide()
> > +            self.props.text = ''
> >              return True
> >          return False
> >
> > --
> > 1.7.9.5
> >
>
> > _______________________________________________
> > Sugar-devel mailing list
> > Sugar-devel at lists.sugarlabs.org
> > http://lists.sugarlabs.org/listinfo/sugar-devel
>
>
> --
> James Cameron
> http://quozl.linux.org.au/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20131119/2b6036e4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Browse_patch2.patch
Type: text/x-patch
Size: 1009 bytes
Desc: not available
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20131119/2b6036e4/attachment.bin>


More information about the Sugar-devel mailing list