1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-10-02 08:18:06 +02:00

Add keyboard option to carousel

Also adds unit tests for keyboard events.

Fixes #14468.
This commit is contained in:
Heinrich Fenkart
2014-09-10 22:55:33 +02:00
parent e7b5c4c18b
commit 038a63b0eb
3 changed files with 90 additions and 2 deletions

View File

@@ -178,6 +178,12 @@ $('.carousel').carousel()
<td>true</td>
<td>Whether the carousel should cycle continuously or have hard stops.</td>
</tr>
<tr>
<td>keyboard</td>
<td>boolean</td>
<td>true</td>
<td>Whether the carousel should react to keyboard events.</td>
</tr>
</tbody>
</table>
</div><!-- /.table-responsive -->