Bind keyboard shortcuts to the right view (refactoring)
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user