Take keyboard control setting into account for possible check

Solves #1660
This commit is contained in:
Gina Häußge 2016-12-16 10:11:53 +01:00
parent 726787e4db
commit a735bcc18d

View file

@ -41,7 +41,7 @@ $(function() {
self.keycontrolActive = ko.observable(false);
self.keycontrolHelpActive = ko.observable(false);
self.keycontrolPossible = ko.pureComputed(function () {
return self.isOperational() && !self.isPrinting() && self.loginState.isUser() && !$.browser.mobile;
return self.settings.feature_keyboardControl() && self.isOperational() && !self.isPrinting() && self.loginState.isUser() && !$.browser.mobile;
});
self.showKeycontrols = ko.pureComputed(function () {
return self.keycontrolActive() && self.keycontrolPossible();