Runtime events/hooks inside on running Electron


So I have a project about portable-node-red that using the

It is working correctly I can create nodes and run no problem but I need to change some functions of the node-red core feature especially Import and Export menus.

So I tried to callback on the runtime events like as mentioned in this topic:

I can get callback like as:'runtime-event', (params) =>
            console.log("RUNTime event!: "+JSON.stringify(params))

But ofcourse all they are triggering on the runtime.
Is there any way to get callbacks of the Import and Export menu to user's defined function?

Have a good coding