From 5ba8db6b6abd01e1100cc6c489cf70d1908b066f Mon Sep 17 00:00:00 2001 From: YULIUS KURNIAWAN KRISTIANTO Date: Fri, 30 Mar 2018 20:37:30 +0200 Subject: [PATCH] feat: add keyboard shortcut to quit the app on Windows (#1202) --- CHANGELOG.md | 9 ++++++--- src/main/menu/setupBarMenu.js | 4 ++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8bd80b2d215..3ca6fe40348 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/). +## [Unreleased] + +### Added + * Add keyboard shortcut to quit the app on Windows ([#1202](https://github.com/lbryio/lbry-app/pull/1202)) + ## [0.21.2] - 2018-03-22 @@ -45,9 +50,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/). * 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 export issues ([#1163](https://github.com/lbryio/lbry-app/pull/1163)) - - - + ## [0.20.0] - 2018-01-30 ### Added diff --git a/src/main/menu/setupBarMenu.js b/src/main/menu/setupBarMenu.js index 14c4e74db3e..08fc9fab2eb 100644 --- a/src/main/menu/setupBarMenu.js +++ b/src/main/menu/setupBarMenu.js @@ -2,6 +2,10 @@ import { app, Menu, shell } from 'electron'; export default () => { const template = [ + { + label: 'File', + submenu: [{ role: 'quit', accelerator: 'CmdOrCtrl+Q' }], + }, { label: 'Edit', submenu: [