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

This commit is contained in:
Hakim El Hattab 2014-06-09 18:24:47 +02:00
parent 3a6172e67d
commit f5ac0b35d1
1 changed files with 6 additions and 1 deletions

View File

@ -3297,7 +3297,12 @@
// Check if the pressed key is question mark // Check if the pressed key is question mark
if( event.shiftKey && event.charCode === 63 ) { if( event.shiftKey && event.charCode === 63 ) {
showHelp(); if( dom.overlay ) {
closeOverlay();
}
else {
showHelp( true );
}
} }
} }