diff --git a/src/manager.vala b/src/manager.vala index 5099b27..de0c30c 100644 --- a/src/manager.vala +++ b/src/manager.vala @@ -46,6 +46,11 @@ namespace Pamac { msg.destroy (); } else { manager_window = new ManagerWindow (this); + var action = new SimpleAction ("quit", null); + action.activate.connect (() => {this.quit ();}); + this.add_action (action); + string[] accels = {"Q", "W"}; + this.set_accels_for_action ("app.quit", accels); } } diff --git a/src/updater.vala b/src/updater.vala index 7c8e101..05a547a 100644 --- a/src/updater.vala +++ b/src/updater.vala @@ -46,6 +46,11 @@ namespace Pamac { msg.destroy (); } else { updater_window = new UpdaterWindow (this); + var action = new SimpleAction ("quit", null); + action.activate.connect (() => {this.quit ();}); + this.add_action (action); + string[] accels = {"Q", "W"}; + this.set_accels_for_action ("app.quit", accels); } }