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