feat(keyboard): key bindings toggle tools

Closes #459
This commit is contained in:
Nico Rehwaldt 2016-01-25 22:11:00 +01:00 committed by Ricardo Matias
parent 2985908357
commit 82073f2d38

View File

@ -16,13 +16,13 @@ function BpmnKeyBindings(keyboard, spaceTool, lassoTool, handTool, directEditing
selection.select(elements); selection.select(elements);
}, },
spaceTool: function() { spaceTool: function() {
spaceTool.activateSelection(); spaceTool.toggle();
}, },
lassoTool: function() { lassoTool: function() {
lassoTool.activateSelection(); lassoTool.toggle();
}, },
handTool: function() { handTool: function() {
handTool.activateHand(); handTool.toggle();
}, },
directEditing: function() { directEditing: function() {
var currentSelection = selection.get(); var currentSelection = selection.get();