fix(keyboard): use correct lasso key

This commit is contained in:
Nico Rehwaldt 2015-05-26 14:06:16 +02:00
parent b212dae211
commit 247594dbbf
1 changed files with 4 additions and 4 deletions

View File

@ -9,15 +9,15 @@ function BpmnKeyBindings(keyboard, spaceTool, lassoTool, directEditing, selectio
return;
}
// S -> activate space tool
// s -> activate space tool
if (key === 83) {
spaceTool.activateSelection();
return true;
}
// L -> activate lasso tool
if (key === 108) {
// l -> activate lasso tool
if (key === 76) {
lassoTool.activateSelection();
return true;
@ -25,7 +25,7 @@ function BpmnKeyBindings(keyboard, spaceTool, lassoTool, directEditing, selectio
var currentSelection = selection.get();
// E -> activate direct editing
// e -> activate direct editing
if (key === 69) {
if (currentSelection.length) {
directEditing.activate(currentSelection[0]);