Skip to content

Commit

Permalink
keys events not received by chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrouget committed Jul 24, 2011
1 parent e3974c0 commit fa53e8d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shells/onstage.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
}
}
}

function back() {views.present.postMessage("back", "*"); }
function forward() {views.present.postMessage("forward", "*"); }
function setSlide(i) {views.present.postMessage("setSlide(" + i + ")", "*"); }
Expand All @@ -76,7 +77,8 @@
views.present.postMessage("toggleContent", "*");
views.remote.postMessage("toggleContent", "*");
}
function onkeydown(e) {

window.onkeydown = function(e) {
// Don't intercept keyboard shortcuts
if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) {
return;
Expand Down

0 comments on commit fa53e8d

Please sign in to comment.