Improve quit app by click CTRL+Q [TESTED] #1150

Closed
ykris45 wants to merge 2 commits from patch-3 into master
Showing only changes of commit a81a23db2a - Show all commits

View file

@ -66,6 +66,11 @@ document.addEventListener('dragover', event => {
document.addEventListener('drop', event => {
event.preventDefault();
});
document.addEventListener('keydown', event => {
event.preventDefault();
if (event.ctrlKey && event.keyCode === 81)
remote.app.quit();
});
document.addEventListener('click', event => {
let { target } = event;
while (target && target !== document) {