Merge pull request #322 from commadelimited/deactivate-nav-during-pause

Only allow 'unpause' keyboard events while paused
This commit is contained in:
Hakim El Hattab 2013-02-02 22:28:28 -08:00
commit abf9ddb588

View File

@ -1549,6 +1549,11 @@ var Reveal = (function(){
var triggered = true;
// while paused only allow "unpausing" keyboard events (b and .)
if (isPaused() && [66,190,191].indexOf(event.keyCode) === -1 ) {
return false;
}
switch( event.keyCode ) {
// p, page up
case 80: case 33: navigatePrev(); break;