diff --git a/source/js/viewer-core.js b/source/js/viewer-core.js index 17ffb01f..0a805af3 100644 --- a/source/js/viewer-core.js +++ b/source/js/viewer-core.js @@ -285,9 +285,7 @@ export default class ViewerCore { if (e.keyCode === 27) { - this.reloadViewer({ - inFullscreen: !this.settings.inFullscreen - }); + this.publicInstance.leaveFullscreenMode(); } }