Skip to content

Commit

Permalink
Add new focus methods to keyBindings
Browse files Browse the repository at this point in the history
  • Loading branch information
LFDM committed Jul 4, 2014
1 parent b352df3 commit 2be5b67
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/js/arethusa.dep_tree/directives/dependency_tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,11 @@ angular.module('arethusa.depTree').directive('dependencyTree', [
function keyBindings(kC) {
return {
tree: [
kC.create('directionChange', function() { scope.changeDir(); })
kC.create('directionChange', function() { scope.changeDir(); }),
kC.create('centerTree', function() { scope.centerGraph(); }),
kC.create('focusRoot', function() { scope.focusRoot(); }),
kC.create('focusSelection', function() { scope.focusSelection(); }),
kC.create('perfectWidth', function() { scope.perfectWidth(); }),
]
};
}
Expand Down

0 comments on commit 2be5b67

Please sign in to comment.