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? π
j
stuff ;)
developer.mozilla.org/en-US/docs/Web/API/Document⦠? maybe this helps?