fix(LabelEditingProvider): work around old WebKit incompatibility

This commit is contained in:
Nico Rehwaldt 2014-06-24 15:34:57 +02:00
parent 07fe97df35
commit 17329666f9
1 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,7 @@
'use strict';
var _ = require('lodash');
var UpdateTextHandler = require('./cmd/UpdateTextHandler');
var LabelUtil = require('./LabelUtil');
@ -22,12 +24,12 @@ function LabelEditingProvider(eventBus, canvas, directEditing, commandStack, bpm
// per default, listen to double click events
eventBus.on('shape.dblclick', function(event) {
directEditing.activate(event.element);
}.bind(this));
});
// per default, listen to double click events
eventBus.on('connection.dblclick', function(event) {
directEditing.activate(event.element);
}.bind(this));
});
// intercept direct canvas clicks to deselect all
// selected shapes