I notice in electron/atom/browser/api/lib/menu-item.coffee and in other places in the codebase that there are references to the undo
and redo
menu items under Edit.
How do I provide a function to be called when these menu items are selected (or the shortcut is pressed)?
Under the hood it is calling webContents.undo()
.
http://electron.atom.io/docs/v0.34.0/api/web-contents/#webcontents-undo
Is there any way to access the event for roles like undo/redo so that we can have a custom undo/redo stack?
Most helpful comment
Is there any way to access the event for roles like undo/redo so that we can have a custom undo/redo stack?