[gtranslator: 1/2] Add help shortcut
- From: Daniel Garcia Moreno <danigm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator: 1/2] Add help shortcut
- Date: Mon, 18 Apr 2022 14:59:28 +0000 (UTC)
commit f9c1a6aac56704034f33bb7177db04ea4be8ca83
Author: Priyansh Singh <priyansh singh100 gmail com>
Date: Mon Apr 18 14:59:27 2022 +0000
Add help shortcut
src/gtr-application.c | 1 +
src/help-overlay.ui | 7 +++++++
2 files changed, 8 insertions(+)
---
diff --git a/src/gtr-application.c b/src/gtr-application.c
index 8878a698..a20b06b3 100644
--- a/src/gtr-application.c
+++ b/src/gtr-application.c
@@ -697,6 +697,7 @@ gtr_application_startup (GApplication *application)
set_kb (application, "app.upload_file", "<Ctrl>b");
set_kb (application, "app.preferences", "<Ctrl>p");
set_kb (application, "app.shortcuts", "<Ctrl><Shift>question");
+ set_kb (application, "app.help", "<Primary>h");
set_kb (application, "app.quit", "<Primary>q");
set_kb (application, "app.undo", "<Ctrl>z");
diff --git a/src/help-overlay.ui b/src/help-overlay.ui
index b145593d..6725d42f 100644
--- a/src/help-overlay.ui
+++ b/src/help-overlay.ui
@@ -48,6 +48,13 @@
<property name="accelerator"><ctrl><Shift>question</property>
</object>
</child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">true</property>
+ <property name="title" translatable="yes" context="shortcut window">Help</property>
+ <property name="accelerator"><Primary>h</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]