[Sugar-devel] [PATCH shell] Views: defocus the search entry by default

Simon Schampijer simon at schampijer.de
Wed Sep 26 05:59:04 EDT 2012


On 09/26/2012 09:40 AM, Simon Schampijer wrote:
> From: Simon Schampijer <simon at laptop.org>
>
> This patch does implement the following behavior:
>
> - the search entry in all the views (Home (Favorites and Activity list),
>    Group and Neighborhood) is unfocused by default
>
> - the search entry can be focused by clicking in the entry or by
>    starting to type
>
> - the search entry contains a hint when unfocused and no search has been
>    entered, the hint is dependent on the View you are in and matches the
>    labels in the View Palettes (Frame), the existing translations have
>    been reused
>
> - the learner can defocus the entry by clicking outside somewhere in
>    the view (toolbar or canvas), if no search has been entered the hint
>    will be displayed again if there is a search entered it will remain
>    in effect and the entry will only be unfocused, the latter will help
>    to hide the OSK and see the matches for a particular search
>
> - clicking on the clear icon in the entry ('x') the entry will be
>    unfocused again
>
> Signed-off-by: Simon Schampijer <simon at laptop.org>

The above was decided in discussions with Gary. We just tested both on 
the XO. A further enhancement would be to do the same in the Journal, 
string is "Search in Journal".

Another enhancement is that hitting "enter" in the entry would unfocus 
it as well, the search entered would remain in effect.

Simon


More information about the Sugar-devel mailing list