Skip to content

Commit

Permalink
fix(cmmn): require ControlOrCmd modifier for canvas move
Browse files Browse the repository at this point in the history
Related to #1016
  • Loading branch information
nikku committed Nov 20, 2018
1 parent 2618ff4 commit 82f757f
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions app/lib/menu/menu-builder.js
Expand Up @@ -693,34 +693,38 @@ MenuBuilder.prototype.appendCmmnActions = function() {
enabled: this.opts.state.inactiveInput,
submenu: Menu.buildFromTemplate([{
label: 'Move Up',
accelerator: 'Up',
accelerator: 'CommandOrControl + Up',
click: function() {
app.emit('menu:action', 'moveCanvas', {
direction: 'up'
direction: 'up',
speed: 50
});
}
}, {
label: 'Move Left',
accelerator: 'Left',
accelerator: 'CommandOrControl + Left',
click: function() {
app.emit('menu:action', 'moveCanvas', {
direction: 'left'
direction: 'left',
speed: 50
});
}
}, {
label: 'Move Down',
accelerator: 'Down',
accelerator: 'CommandOrControl + Down',
click: function() {
app.emit('menu:action', 'moveCanvas', {
direction: 'down'
direction: 'down',
speed: 50
});
}
}, {
label: 'Move Right',
accelerator: 'Right',
accelerator: 'CommandOrControl + Right',
click: function() {
app.emit('menu:action', 'moveCanvas', {
direction: 'right'
direction: 'right',
speed: 50
});
}
}])
Expand Down

0 comments on commit 82f757f

Please sign in to comment.