Only allowing 'unpause' keyboard events while paused
This commit is contained in:
parent
784fa9d2e3
commit
f0b93d895b
@ -1480,6 +1480,11 @@ var Reveal = (function(){
|
|||||||
|
|
||||||
var triggered = true;
|
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 ) {
|
switch( event.keyCode ) {
|
||||||
// p, page up
|
// p, page up
|
||||||
case 80: case 33: navigatePrev(); break;
|
case 80: case 33: navigatePrev(); break;
|
||||||
|
Loading…
Reference in New Issue
Block a user