mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-03-16 22:10:32 +00:00
Update itext_key_behavior.mixin.js
This commit is contained in:
parent
d2600f47c8
commit
04d398e675
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue