prioritize closing preview when ESC is pressed
This commit is contained in:
parent
88d84e4551
commit
e14f5a95da
|
@ -2458,7 +2458,12 @@ var Reveal = (function(){
|
|||
}
|
||||
// ESC or O key
|
||||
else if ( ( event.keyCode === 27 || event.keyCode === 79 ) && supports3DTransforms ) {
|
||||
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 New Issue
Block a user