Commit 04dd4477 authored by Jean-Pierre Villain's avatar Jean-Pierre Villain Committed by GitHub

Merge pull request #40 from atalan/patch-1

Disable space bar action when user don't want it
parents 5338518c ce454705
......@@ -444,7 +444,7 @@ window.onload = function() {
document.addEventListener( 'keydown', function( e ) {
if ( key( e ) == 248 ) { OpenToc(); }
if( config.ModePlan.val === 0 ){
if ( key( e ) === 32 ) { GotoNext(); e.preventDefault(); }
if ( key( e ) === 32 && config.Noclick.val === 0 ) { GotoNext(); e.preventDefault(); }
if ( key( e ) === 39 || key( e ) === 34 ) { GotoNext(); e.preventDefault(); }
if ( key( e ) === 37 || key( e ) === 33 || key( e ) == 132 ) { GotoPrev(); e.preventDefault(); }
if ( key( e ) === 36 ) { current = 0; GotoSlide(); e.preventDefault(); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment