Electron menu – call simple function in index.html


Hey Guys,

sorry for the newbish question. I have a function that I am calling inside of my index.html like this:


How can I call this function from the electron main menu (edit > delete) and how can I assign delete and backspace keys for doing this?