Open
Description
Currently, the OnClose
event on BrowserWindow
does not provide any event args to callees of the event. This makes it impossible to prevent closing the window from C# code directly without involving Javascript that catches the 'onbeforeunload' event.
This fact was mentioned in several previous issues:
#391 (comment)
#567
I would therefore request that EventArgs be added to this event that allow preventing the window from being closed, analogous to the Electron BrowserWindow close
event: https://www.electronjs.org/docs/latest/api/browser-window#event-close