diff --git a/lib/features/keyboard/BpmnKeyboardBindings.js b/lib/features/keyboard/BpmnKeyboardBindings.js index 98b61975..3531f377 100644 --- a/lib/features/keyboard/BpmnKeyboardBindings.js +++ b/lib/features/keyboard/BpmnKeyboardBindings.js @@ -48,7 +48,7 @@ BpmnKeyboardBindings.prototype.registerBindings = function(keyboard, editorActio // CTRL + A addListener('selectElements', function(context) { - var event = context.event; + var event = context.keyEvent; if (keyboard.isKey(['a', 'A'], event) && keyboard.isCmd(event)) { editorActions.trigger('selectElements'); @@ -61,7 +61,7 @@ BpmnKeyboardBindings.prototype.registerBindings = function(keyboard, editorActio // CTRL + F addListener('find', function(context) { - var event = context.event; + var event = context.keyEvent; if (keyboard.isKey(['f', 'F'], event) && keyboard.isCmd(event)) { editorActions.trigger('find'); @@ -74,7 +74,7 @@ BpmnKeyboardBindings.prototype.registerBindings = function(keyboard, editorActio // S addListener('spaceTool', function(context) { - var event = context.event; + var event = context.keyEvent; if (keyboard.hasModifier(event)) { return; @@ -91,7 +91,7 @@ BpmnKeyboardBindings.prototype.registerBindings = function(keyboard, editorActio // L addListener('lassoTool', function(context) { - var event = context.event; + var event = context.keyEvent; if (keyboard.hasModifier(event)) { return; @@ -108,7 +108,7 @@ BpmnKeyboardBindings.prototype.registerBindings = function(keyboard, editorActio // H addListener('handTool', function(context) { - var event = context.event; + var event = context.keyEvent; if (keyboard.hasModifier(event)) { return; @@ -125,7 +125,7 @@ BpmnKeyboardBindings.prototype.registerBindings = function(keyboard, editorActio // C addListener('globalConnectTool', function(context) { - var event = context.event; + var event = context.keyEvent; if (keyboard.hasModifier(event)) { return; @@ -142,7 +142,7 @@ BpmnKeyboardBindings.prototype.registerBindings = function(keyboard, editorActio // E addListener('directEditing', function(context) { - var event = context.event; + var event = context.keyEvent; if (keyboard.hasModifier(event)) { return;