[sugar] [PATCH] Browse - Find in Page
Simon Schampijer
simon
Thu Jun 12 17:35:12 EDT 2008
Simon Schampijer wrote:
> Hi,
>
> this patch adds an entry field and a previous and next button to the
> edit toolbar to search in the context. You can use (ctrl+f) to focus the
> search entry in the edit toolbar. The find is typeahead. Hitting 'Enter'
> will find the next occurrence.
>
> I used the xpcom interface nsITypeAheadFind since it allows find() and
> findAgain() compared to nsIWebBrowserFind.
>
> Open questions:
> - what feedback do we give when no occurrence was found (firefox paints
> the entry red)
I use now a light gray to change the color of the text (works as well in grayscale
mode). The buttons for next, prev are inactive as well in that case.
Simon
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0002-Find-in-page.patch
Url: http://lists.laptop.org/pipermail/sugar/attachments/20080612/2792b97b/attachment-0001.txt
More information about the Sugar-devel
mailing list