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

Closed
ykris45 wants to merge 2 commits from patch-3 into master
2 changed files with 6 additions and 0 deletions

View file

@ -38,6 +38,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
* Error when clicking LBRY URLs when app is closed on macOS ([#1119](https://github.com/lbryio/lbry-app/issues/1119)) * Error when clicking LBRY URLs when app is closed on macOS ([#1119](https://github.com/lbryio/lbry-app/issues/1119))
* LBRY URLs not working on Linux ([#1120](https://github.com/lbryio/lbry-app/issues/1120)) * LBRY URLs not working on Linux ([#1120](https://github.com/lbryio/lbry-app/issues/1120))
* Fix Windows notifications not showing ([1145](https://github.com/lbryio/lbry-app/pull/1145)) * Fix Windows notifications not showing ([1145](https://github.com/lbryio/lbry-app/pull/1145))
* Improve menu / keyboard shortcut to Quit LBRY app ([#1002](https://github.com/lbryio/lbry-app/issues/1002))
### Deprecated ### Deprecated
* *

View file

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