diff options
| author | Igor Minar | 2011-01-10 21:23:22 -0800 |
|---|---|---|
| committer | Igor Minar | 2011-01-10 21:23:22 -0800 |
| commit | ab040254f084d3b6d6f51d0503c750c118eef0c1 (patch) | |
| tree | f205e1b5c4dde2099faf327b064f8d1e8058a672 /docs/src/templates | |
| parent | 4f5d5029c278fdecd7a80b217bfc21461e30abe8 (diff) | |
| download | angular.js-ab040254f084d3b6d6f51d0503c750c118eef0c1.tar.bz2 | |
tabbing and keyboard shortcut for docs
- first tab goes to the search box, following tabs iterate results
- ctrl+s (FF on mac) or ctrl+alt+s (Chrome on mac) move focus to the
search box
Diffstat (limited to 'docs/src/templates')
| -rw-r--r-- | docs/src/templates/index.html | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/src/templates/index.html b/docs/src/templates/index.html index aeeb8980..bb80a4ba 100644 --- a/docs/src/templates/index.html +++ b/docs/src/templates/index.html @@ -26,14 +26,15 @@ <div id="header"> <h1> <span class="main-title">{{getTitle()}}</span> - <a href="#"><span class="angular"><angular/></span> Docs</a> + <a href="#" tabindex="0"><span class="angular"><angular/></span> Docs</a> </h1> </div> <div id="sidebar"> - <input type="text" name="search" id="search-box" placeholder="search the docs"/> + <input type="text" name="search" id="search-box" placeholder="search the docs" + tabindex="1" accesskey="s"/> <ul id="api-list"> <li ng:repeat="page in pages.$filter(search)" ng:class="getClass(page)"> - <a href="{{getUrl(page)}}" ng:click="">{{page.name | short}}</a> + <a href="{{getUrl(page)}}" ng:click="" tabindex="2">{{page.name | short}}</a> </li> </ul> </div> |
