Commit d888b147 authored by bbaer's avatar bbaer
Browse files

delete now triggers form.changed / emojis work again

parent 2e6ca0f4
......@@ -429,9 +429,7 @@ $(function (n) {
n.Fabric.prototype.dragEndEvent = function(e) {
if (this.dragAndDrop) {
if (this.mouseInsideCanvas) {
this.emojiAdd(this.dndData, e);
}
this.emojiAdd(this.dndData, e);
this.dndData = '';
this.dragAndDrop = false;
}
......@@ -914,6 +912,7 @@ $(function (n) {
n.Fabric.prototype.delete = function() {
this.deleteActiveGroup();
this.defaultChangeHandler();
};
n.Fabric.prototype.draw = function() {
......@@ -960,11 +959,12 @@ $(function (n) {
};
n.Fabric.prototype.defaultKeyStrokeHandler = function(e) {
// Delete key
if (e.keyCode === 46) {
this.delete();
}
if (this.mouseInsideCanvas) {
// Delete key
if (e.keyCode === 46) {
this.delete();
}
// Numpad +
if (e.keyCode === 107) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment