diff options
Diffstat (limited to 'assets/js/src')
-rw-r--r-- | assets/js/src/BoardCollapsedMode.js | 8 | ||||
-rw-r--r-- | assets/js/src/BoardHorizontalScrolling.js | 8 |
2 files changed, 10 insertions, 6 deletions
diff --git a/assets/js/src/BoardCollapsedMode.js b/assets/js/src/BoardCollapsedMode.js index c33146fe..8365d3fb 100644 --- a/assets/js/src/BoardCollapsedMode.js +++ b/assets/js/src/BoardCollapsedMode.js @@ -5,9 +5,11 @@ Kanboard.BoardCollapsedMode = function(app) { Kanboard.BoardCollapsedMode.prototype.keyboardShortcuts = function() { var self = this; - Mousetrap.bind("s", function() { - self.toggle(); - }); + if (self.app.hasId("board")) { + Mousetrap.bind("s", function() { + self.toggle(); + }); + } }; Kanboard.BoardCollapsedMode.prototype.toggle = function() { diff --git a/assets/js/src/BoardHorizontalScrolling.js b/assets/js/src/BoardHorizontalScrolling.js index 81f188c4..d4c3aaf3 100644 --- a/assets/js/src/BoardHorizontalScrolling.js +++ b/assets/js/src/BoardHorizontalScrolling.js @@ -20,9 +20,11 @@ Kanboard.BoardHorizontalScrolling.prototype.listen = function() { Kanboard.BoardHorizontalScrolling.prototype.keyboardShortcuts = function() { var self = this; - Mousetrap.bind("c", function() { - self.toggle(); - }); + if (self.app.hasId("board")) { + Mousetrap.bind("c", function () { + self.toggle(); + }); + } }; Kanboard.BoardHorizontalScrolling.prototype.onBoardRendered = function() { |