prioritize closing preview when ESC is pressed
parent
88d84e4551
commit
e14f5a95da
|
@ -2458,7 +2458,12 @@ var Reveal = (function(){
|
|||
}
|
||||
// ESC or O key
|
||||
else if ( ( event.keyCode === 27 || event.keyCode === 79 ) && supports3DTransforms ) {
|
||||
toggleOverview();
|
||||
if( dom.preview ) {
|
||||
closePreview();
|
||||
}
|
||||
else {
|
||||
toggleOverview();
|
||||
}
|
||||
|
||||
event.preventDefault();
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue