Explorar o código

toggle instead of always showing the help overlay when ? is pressed

Hakim El Hattab %!s(int64=10) %!d(string=hai) anos
pai
achega
f5ac0b35d1
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      js/reveal.js

+ 6 - 1
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 );
+			}
 		}
 
 	}