prioritize closing preview when ESC is pressed
This commit is contained in:
parent
88d84e4551
commit
e14f5a95da
2 changed files with 8 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
|
|
4
js/reveal.min.js
vendored
4
js/reveal.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue