Commit ce454705 authored by Atalan's avatar Atalan Committed by GitHub

Enable space bar action to display the next slide only when config.Noclick.val === 0

Remove the space bar action (to display the next slide) when the option "Remove the click action (and the space bar) to display the next slide" is checked.
parent 5338518c
......@@ -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