add optional 'o' key to toggle overview #491

This commit is contained in:
Hakim El Hattab 2013-07-18 21:53:00 -04:00
parent 0148b3fc2d
commit 1bb810e072
3 changed files with 5 additions and 4 deletions

View file

@ -400,7 +400,7 @@ By default, Reveal is configured with [highlight.js](http://softwaremaniacs.org/
### Overview mode ### Overview mode
Press "Esc" key to toggle the overview mode on and off. While you're in this mode, you can still navigate between slides, Press "Esc" or "o" keys to toggle the overview mode on and off. While you're in this mode, you can still navigate between slides,
as if you were at 1,000 feet above your presentation. The overview mode comes with a few API hooks: as if you were at 1,000 feet above your presentation. The overview mode comes with a few API hooks:
```javascript ```javascript

View file

@ -2187,7 +2187,8 @@ var Reveal = (function(){
if( triggered ) { if( triggered ) {
event.preventDefault(); event.preventDefault();
} }
else if ( event.keyCode === 27 && supports3DTransforms ) { // ESC or O key
else if ( ( event.keyCode === 27 || event.keyCode === 79 ) && supports3DTransforms ) {
toggleOverview(); toggleOverview();
event.preventDefault(); event.preventDefault();

4
js/reveal.min.js vendored

File diff suppressed because one or more lines are too long