aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2014-06-09 18:24:47 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2014-06-09 18:24:47 +0200
commitf5ac0b35d1f9886de8782dbbc573d0ef12dcd131 (patch)
treed22ab44eb759b1c6f430d9c34127dfe1de60227a /js
parent3a6172e67d7a2e0f72db7eb7d00d1e85179aab6d (diff)
downloadfosdem-2018-presentation-f5ac0b35d1f9886de8782dbbc573d0ef12dcd131.tar
fosdem-2018-presentation-f5ac0b35d1f9886de8782dbbc573d0ef12dcd131.tar.gz
toggle instead of always showing the help overlay when ? is pressed
Diffstat (limited to 'js')
-rw-r--r--js/reveal.js7
1 files changed, 6 insertions, 1 deletions
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 );
+ }
}
}