Skip to content

Commit

Permalink
Presseing esc in a presentation goes to overview mode Fixes GH-45
Browse files Browse the repository at this point in the history
  • Loading branch information
tantaman committed May 11, 2013
1 parent df585e2 commit c73c8fa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/preview_export/scripts/impress.js
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,13 @@ window.presStarted = true;

})(document, window);


document.addEventListener("keydown", function(e) {
if (e.keyCode == 27) {
impress().goto('overview');
}
}, false);

}

if ( typeof define === "function" && define.amd ) {
Expand Down

0 comments on commit c73c8fa

Please sign in to comment.