Skip to content

Commit

Permalink
Fix: Properly exit fullscreen on esc press
Browse files Browse the repository at this point in the history
  • Loading branch information
EricHanLiu committed Aug 30, 2018
1 parent c73ca70 commit 21154a5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions source/js/viewer-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,7 @@ export default class ViewerCore
{
if (e.keyCode === 27)
{
this.reloadViewer({
inFullscreen: !this.settings.inFullscreen
});
this.publicInstance.leaveFullscreenMode();
}
}

Expand Down

0 comments on commit 21154a5

Please sign in to comment.