I am creating a small text editor with jQuery. I would like to add 2 buttons with "un-do" (ctrl z) and the opposite (ctrl y) functionality.
Is it possible to use the built-in functionality of windows (ctrl + z, ctrl + y) to get the desired effect, instead of saving everything on the stack and implementing it using jQuery? It seems obvious, since ctrl + z and ctrl + y really work when using textarea. The only change I need is to get the same effect if the user clicks on the button that I generate.
Gidi
source
share