3b74837020
* Event = Base event type (with preventDefault) * IpcMainEvent = Event that ipcMain emits (with sender, reply, etc.) * IpcRendererEvent = Event that ipcRenderer emits (with sender, senderId, etc.) * KeyboardEvent = Event that we emit with keyboard flags (ctrlKey, altKey, etc.) This will dramatically improve peoples TS experience with IPC events
552 B
552 B
IpcRendererEvent Object extends Event
sender
IpcRenderer - TheIpcRenderer
instance that emitted the event originallysenderId
Integer - ThewebContents.id
that sent the message, you can callevent.sender.sendTo(event.senderId, ...)
to reply to the message, see ipcRenderer.sendTo for more information. This only applies to messages sent from a different renderer. Messages sent directly from the main process setevent.senderId
to0
.