parent
131c00689a
commit
a078c87f10
2 changed files with 9 additions and 4 deletions
|
@ -2658,8 +2658,13 @@ var Reveal = (function(){
|
|||
// keyboard modifier key is present
|
||||
if( hasFocus || (event.shiftKey && event.keyCode !== 32) || event.altKey || event.ctrlKey || event.metaKey ) return;
|
||||
|
||||
// While paused only allow "unpausing" keyboard events (b and .)
|
||||
if( isPaused() && [66,190,191].indexOf( event.keyCode ) === -1 ) {
|
||||
// While paused only allow "unpausing" keyboard events ('b', '.' or any key specifically mapped to togglePause )
|
||||
var allowedKeys = [66,190,191].concat(Object.keys(config.keyboard).map(function(key){
|
||||
if (config.keyboard[key] === 'togglePause') {
|
||||
return parseInt(key, 10);
|
||||
}
|
||||
}));
|
||||
if( isPaused() && allowedKeys.indexOf( event.keyCode ) === -1 ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
4
js/reveal.min.js
vendored
4
js/reveal.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue