Closed Iyusuf40 closed 1 week ago
Didn't quite get why a separate undo / redo system is needed for text. I assume it is so the text element stays selected and editing happens more smoothly. But it was not clear in your description, so I ask.
Yes, I should have mentioned.
undo
and redo
unselects the text, going out of the current edit mode.Cursor
class, but then the histories are lost after a new text is selected.fillText
method of ctx do leave out spaces undrawn, causing missed text selection.
ctrl-A
to highlight all textctrl-C
andctrl-V
to copy to and from textShape