Browse Source

Keep Firefox window from scrolling right when using the right arrow key in presentations.

pull/153/head
Evan Theurer 11 years ago
parent
commit
e5143d273a
  1. 10
      static/js/directives/presentation.js

10
static/js/directives/presentation.js

@ -743,6 +743,16 @@ define(['jquery', 'underscore', 'text!partials/presentation.html', 'bigscreen'], @@ -743,6 +743,16 @@ define(['jquery', 'underscore', 'text!partials/presentation.html', 'bigscreen'],
event.preventDefault();
});
$(document).on("keydown", function(event) {
if (!$scope.layout.presentation) {
return;
}
if ($(event.target).is("input,textarea,select")) {
return;
}
event.preventDefault();
});
$scope.$watch("layout.presentation", function(newval, oldval) {
if (newval && !oldval) {
$scope.showPresentation();

Loading…
Cancel
Save