From f5ac0b35d1f9886de8782dbbc573d0ef12dcd131 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Mon, 9 Jun 2014 18:24:47 +0200 Subject: [PATCH] toggle instead of always showing the help overlay when ? is pressed --- js/reveal.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/js/reveal.js b/js/reveal.js index 3f56435..c311fb0 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -3297,7 +3297,12 @@ // Check if the pressed key is question mark if( event.shiftKey && event.charCode === 63 ) { - showHelp(); + if( dom.overlay ) { + closeOverlay(); + } + else { + showHelp( true ); + } } }