diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-03-20 16:22:00 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-03-20 16:22:11 -0400 |
commit | 77c84410ec7cbca50aecc04c3745b46122fbe59c (patch) | |
tree | 878c53b24f16f3655d4f5d1d2a2742a4b02985d1 /assets/js/src/BoardCollapsedMode.js | |
parent | f77d6c590bf683377986064113ddddae9ed443c2 (diff) |
Bind keyboard shortcuts to the right view (refactoring)
Diffstat (limited to 'assets/js/src/BoardCollapsedMode.js')
-rw-r--r-- | assets/js/src/BoardCollapsedMode.js | 8 |
1 files changed, 5 insertions, 3 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() { |