This commit fixes a few edge-cases. First, if you `prefers-color-scheme`
is dark, your background will no longer be dark in light mode.
Furthermore, switching from dark to system theme now works. It did not
before, as we queried our iframe for color-scheme instead of the parent
window (our iframe inherited the color-scheme from the parent document).
Finally, the navbar iframe has its color-scheme set separately, which
caused issues in a few cases.
- Makes the autocomplete results highlight with up/down arrows.
- Allows you to unselect autocomplete results by using arrow keys.
- Fixed a bug in previous commits where enter did not take you to autocomplete result.
- Return now goes to the search page if no autocomplete result is selected.
- Search results table now properly wraps. (It would be nice to make it wider but I wasn't able to).
- Fixed a bug in the previous commit where docs were not showing, due to failure to copy a modified js file.
Adds a two-column table to the search results so you can see the doc string next to
the result. The doc string is not parsed/converted to markdown yet, but that could
be done later.
Now instead of clicking the "Google Site Search"' button, the user has the option
of clicking the "Search" button, which will take them to a results page. Currently,
the results are identical to the autocomplete results, but the number of results
is not limited to 30. In the future, more information and search options could
be added to this page to make a more powerful search.
Fixes#107
* Work around unsupported RegExp lookbehind in WebKit.
* Update static/find/find.js
Co-authored-by: Mario Carneiro <di.gama@gmail.com>
Co-authored-by: Mario Carneiro <di.gama@gmail.com>