diff --git a/src/server/electron-window.js b/src/server/electron-window.js index 821878e4..beb0782c 100644 --- a/src/server/electron-window.js +++ b/src/server/electron-window.js @@ -79,7 +79,7 @@ module.exports = function(options={}) { window.webContents.on('before-input-event', (e, input)=>{ // using before-input-event because electron-localshortcut // gets azerty keyboards wrong (ctrl + z would also be catched) - if ((input.key === 'w' || input.key === 'W') && input.control) { + if ((input.key === 'w' || input.key === 'W') && input.control && input.type === 'keyDown') { window.close() } })