Skip to content

Commit

Permalink
Merge pull request nolimits4web#1526 from jsundn/master
Browse files Browse the repository at this point in the history
Sets keyboardControl param in disable and enableKeyboardControl
  • Loading branch information
nolimits4web committed Dec 7, 2015
2 parents a6e98cc + c7e0b61 commit cbcbd33
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/js/keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@ function handleKeyboard(e) {
}
}
s.disableKeyboardControl = function () {
s.params.keyboardControl = false;
$(document).off('keydown', handleKeyboard);
};
s.enableKeyboardControl = function () {
s.params.keyboardControl = true;
$(document).on('keydown', handleKeyboard);
};

0 comments on commit cbcbd33

Please sign in to comment.