[gnome-maps] application: Resurrect quit shortcut



commit 1f76a463928a1cd2396a07a2a32f5a23c7b7bd86
Author: Marcus Lundblad <ml update uu se>
Date:   Thu Dec 13 21:51:38 2018 +0100

    application: Resurrect quit shortcut
    
    The keyboard shortcut for quitting (ctrl+q) was
    earlier set in the .ui for the application menu.
    Re-add it as an application action.
    
    Fixes #142

 src/application.js | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/application.js b/src/application.js
index 80dbe40..01ed1df 100644
--- a/src/application.js
+++ b/src/application.js
@@ -212,6 +212,10 @@ var Application = GObject.registerClass({
             },
             'osm-account-setup': {
                 onActivate: this._onOsmAccountSetupActivate.bind(this)
+            },
+            'quit': {
+                onActivate: () => this.quit(),
+                accels: ['<Primary>Q']
             }
         });
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]