[sugar] [PATCH] Browse - Find in Page

Simon Schampijer simon
Thu Jun 12 04:00:20 EDT 2008


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)
  - do we provide shortcuts for next and previous (firefox uses ctrl+g for findAgain)

Best,
    Simon
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-Find-in-page.patch
Url: http://lists.laptop.org/pipermail/sugar/attachments/20080612/e4d4deae/attachment.txt 



More information about the Sugar-devel mailing list