chore(keyboard): handle { keyEvent } listener result
* event got renamed to keyEvent in context passed to keyboard listeners
This commit is contained in:
parent
a525c633a2
commit
c3f967b39f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue