Update itext_key_behavior.mixin.js

This commit is contained in:
Andrea Bogazzi 2015-05-21 14:59:10 +02:00
parent d2600f47c8
commit 04d398e675

View file

@ -81,6 +81,9 @@ fabric.util.object.extend(fabric.IText.prototype, /** @lends fabric.IText.protot
*/
forwardDelete: function(e) {
if (this.selectionStart === this.selectionEnd) {
if (this.selectionStart === this.text.length) {
return;
}
this.moveCursorRight(e);
}
this.removeChars(e);