[gnome-maps] Add keyboard shortcut for going to current location



commit 432a5af20589d232a8c278d55e721f646a603c53
Author: Karanbir Chahal <karanbleep gmail com>
Date:   Tue Jan 5 08:31:10 2016 +0530

    Add keyboard shortcut for going to current location
    
    A shortcut for going to the user's location has been added.
    The accel for this is <Primary>L.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=760066

 data/ui/help-overlay.ui |    7 +++++++
 src/mainWindow.js       |    1 +
 2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/data/ui/help-overlay.ui b/data/ui/help-overlay.ui
index a95177c..2f87841 100644
--- a/data/ui/help-overlay.ui
+++ b/data/ui/help-overlay.ui
@@ -57,6 +57,13 @@
                 <property name="accelerator">minus</property>
               </object>
             </child>
+            <child>
+               <object class="GtkShortcutsShortcut">
+                 <property name="visible">1</property>
+                 <property name="title" translatable="yes">Go to current location</property>
+                 <property name="accelerator">&lt;Primary&gt;L</property>
+               </object>
+             </child>
           </object>
         </child>
       </object>
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 89c4d47..dc4e623 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -185,6 +185,7 @@ const MainWindow = new Lang.Class({
                 onActivate: this._onMapTypeActivate.bind(this)
             },
             'goto-user-location': {
+                accels: ['<Primary>L'],
                 onActivate: this._onGotoUserLocationActivate.bind(this)
             },
             'toggle-sidebar': {


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