[nautilus] application: Add shortcut for Preferences



commit 349f86ec60331b2f46526787c5ee3deab94cd273
Author: Sabri Ünal <libreajans gmail com>
Date:   Fri Sep 30 16:24:13 2022 +0000

    application: Add shortcut for Preferences

 src/nautilus-application.c        | 2 ++
 src/resources/gtk/help-overlay.ui | 7 +++++++
 2 files changed, 9 insertions(+)
---
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index eb7b6e32e..c3e588103 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -854,6 +854,8 @@ nautilus_init_application_actions (NautilusApplication *app)
                                           "app.help", "F1");
     nautilus_application_set_accelerator (G_APPLICATION (app),
                                           "app.quit", "<Primary>q");
+    nautilus_application_set_accelerator (G_APPLICATION (app),
+                                          "app.preferences", "<Primary>comma");
 }
 
 static void
diff --git a/src/resources/gtk/help-overlay.ui b/src/resources/gtk/help-overlay.ui
index 9c5836392..d8f7fbd4e 100644
--- a/src/resources/gtk/help-overlay.ui
+++ b/src/resources/gtk/help-overlay.ui
@@ -53,6 +53,13 @@
                 <property name="accelerator">F1</property>
               </object>
             </child>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">True</property>
+                <property name="title" translatable="yes" context="shortcut window">Show 
preferences</property>
+                <property name="accelerator">&lt;Primary&gt;comma</property>
+              </object>
+            </child>
             <child>
               <object class="GtkShortcutsShortcut">
                 <property name="visible">True</property>


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