Skip to content

Commit

Permalink
document keyboard events, highlight focused maps
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner committed Jul 27, 2012
1 parent db005f9 commit e57cce2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/css/screen.css
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,9 @@ a.nodocs {
border: 1px solid #ccc;
margin: 1.5em 0;
}
.container .map:focus {
border-color: #999;
}

#map {
height: 320px;
Expand Down
10 changes: 10 additions & 0 deletions reference.html
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,16 @@ <h3 id="map-events">Events</h3>
<td><code><a href="#mouse-event">MouseEvent</a></code>
<td>Fired when the user pushes the right mouse button on the map, prevents default browser context menu from showing if there are listeners on this event.</td>
</tr>
<tr>
<td><code><b>focus</b></code></td>
<td><code><a href="#event">Event</a></code>
<td>Fired when the user focuses the map either by tabbing to it or clicking/panning.</td>
</tr>
<tr>
<td><code><b>blur</b></code></td>
<td><code><a href="#event">Event</a></code>
<td>Fired when the map looses focus.</td>
</tr>
<tr>
<td><code><b>preclick</b></code></td>
<td><code><a href="#mouse-event">MouseEvent</a></code>
Expand Down

0 comments on commit e57cce2

Please sign in to comment.