mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-27 14:33:59 +00:00
Merge pull request #2223 from asturur/master
Fix deleting forward at end of text.
This commit is contained in:
commit
4c2dd702d3
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