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
|
// CTRL + A
|
||||||
addListener('selectElements', function(context) {
|
addListener('selectElements', function(context) {
|
||||||
|
|
||||||
var event = context.event;
|
var event = context.keyEvent;
|
||||||
|
|
||||||
if (keyboard.isKey(['a', 'A'], event) && keyboard.isCmd(event)) {
|
if (keyboard.isKey(['a', 'A'], event) && keyboard.isCmd(event)) {
|
||||||
editorActions.trigger('selectElements');
|
editorActions.trigger('selectElements');
|
||||||
|
@ -61,7 +61,7 @@ BpmnKeyboardBindings.prototype.registerBindings = function(keyboard, editorActio
|
||||||
// CTRL + F
|
// CTRL + F
|
||||||
addListener('find', function(context) {
|
addListener('find', function(context) {
|
||||||
|
|
||||||
var event = context.event;
|
var event = context.keyEvent;
|
||||||
|
|
||||||
if (keyboard.isKey(['f', 'F'], event) && keyboard.isCmd(event)) {
|
if (keyboard.isKey(['f', 'F'], event) && keyboard.isCmd(event)) {
|
||||||
editorActions.trigger('find');
|
editorActions.trigger('find');
|
||||||
|
@ -74,7 +74,7 @@ BpmnKeyboardBindings.prototype.registerBindings = function(keyboard, editorActio
|
||||||
// S
|
// S
|
||||||
addListener('spaceTool', function(context) {
|
addListener('spaceTool', function(context) {
|
||||||
|
|
||||||
var event = context.event;
|
var event = context.keyEvent;
|
||||||
|
|
||||||
if (keyboard.hasModifier(event)) {
|
if (keyboard.hasModifier(event)) {
|
||||||
return;
|
return;
|
||||||
|
@ -91,7 +91,7 @@ BpmnKeyboardBindings.prototype.registerBindings = function(keyboard, editorActio
|
||||||
// L
|
// L
|
||||||
addListener('lassoTool', function(context) {
|
addListener('lassoTool', function(context) {
|
||||||
|
|
||||||
var event = context.event;
|
var event = context.keyEvent;
|
||||||
|
|
||||||
if (keyboard.hasModifier(event)) {
|
if (keyboard.hasModifier(event)) {
|
||||||
return;
|
return;
|
||||||
|
@ -108,7 +108,7 @@ BpmnKeyboardBindings.prototype.registerBindings = function(keyboard, editorActio
|
||||||
// H
|
// H
|
||||||
addListener('handTool', function(context) {
|
addListener('handTool', function(context) {
|
||||||
|
|
||||||
var event = context.event;
|
var event = context.keyEvent;
|
||||||
|
|
||||||
if (keyboard.hasModifier(event)) {
|
if (keyboard.hasModifier(event)) {
|
||||||
return;
|
return;
|
||||||
|
@ -125,7 +125,7 @@ BpmnKeyboardBindings.prototype.registerBindings = function(keyboard, editorActio
|
||||||
// C
|
// C
|
||||||
addListener('globalConnectTool', function(context) {
|
addListener('globalConnectTool', function(context) {
|
||||||
|
|
||||||
var event = context.event;
|
var event = context.keyEvent;
|
||||||
|
|
||||||
if (keyboard.hasModifier(event)) {
|
if (keyboard.hasModifier(event)) {
|
||||||
return;
|
return;
|
||||||
|
@ -142,7 +142,7 @@ BpmnKeyboardBindings.prototype.registerBindings = function(keyboard, editorActio
|
||||||
// E
|
// E
|
||||||
addListener('directEditing', function(context) {
|
addListener('directEditing', function(context) {
|
||||||
|
|
||||||
var event = context.event;
|
var event = context.keyEvent;
|
||||||
|
|
||||||
if (keyboard.hasModifier(event)) {
|
if (keyboard.hasModifier(event)) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue