aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2015-08-14 23:25:30 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2015-08-14 23:25:30 +0200
commitb9d9632531308a5d36a8c8bd02871506c217a44b (patch)
treed48cb1165e3c57a8afc3b55feaef10ada1fe09ac
parent1bf236a07932307e4018dc6d376714d71783587f (diff)
downloadfosdem-2018-presentation-b9d9632531308a5d36a8c8bd02871506c217a44b.tar
fosdem-2018-presentation-b9d9632531308a5d36a8c8bd02871506c217a44b.tar.gz
simplify
-rw-r--r--js/reveal.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 7a000dc..bb43188 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -3776,11 +3776,11 @@
// Custom key bindings for togglePause should be able to resume
if( typeof config.keyboard === 'object' ) {
- resumeKeyCodes = resumeKeyCodes.concat( Object.keys( config.keyboard ).map( function( key ) {
+ for( var key in config.keyboard ) {
if( config.keyboard[key] === 'togglePause' ) {
- return parseInt( key, 10 );
+ resumeKeyCodes.push( parseInt( key, 10 ) );
}
- }));
+ }
}
if( isPaused() && resumeKeyCodes.indexOf( event.keyCode ) === -1 ) {