Browse Source

Merge e5143d273a into ff95b5e408

pull/153/merge
theurere 8 years ago committed by GitHub
parent
commit
ffb0fca4b8
  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