My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Does the browser have an "undo buffer" api?

Abinav Seelan's photo
Abinav Seelan
·Feb 28, 2018

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? 😄