Skip to content

Instantly share code, notes, and snippets.

@t57ser
Created February 20, 2024 13:19
Show Gist options
  • Save t57ser/30ad5e0ac634feb13e412408048742ce to your computer and use it in GitHub Desktop.
Save t57ser/30ad5e0ac634feb13e412408048742ce to your computer and use it in GitHub Desktop.
Electron 29 incorrect key
let { app, BrowserWindow, ipcMain, session} = require("electron")
const electron = require("electron");
function createWindow() {
let win = new BrowserWindow({
})
win.loadURL("https://www.example.com");
win.webContents.on("before-input-event", (event, input) => {
console.log("before-input-event",input);
});
win.webContents.on("input-event", (event, input) => {
console.log("input-event", input);
});
}
app.on("ready", createWindow)
app.on("window-all-closed", () => {
app.quit()
})
{
"main": "main.js",
"scripts": {
"start": "electron ."
},
"devDependencies": {
"electron": "29.0.0"
},
"dependencies": {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment