Sign in
Log inSign up

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

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2025 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct