Does the browser have an "undo buffer" api?
I have a textarea that supports keyboard shortcuts, some of which manipulate the text inside the textarea and change the cursor position. Currently, doing a cmd + z
does not correctly undo the last change, but rather undoes the the last thing I typed.
Is there anyway to modify the list of actions to undo, or an implementation that I can build to handle this? 😄