[polari] ui: Add shortcut for primary menu
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] ui: Add shortcut for primary menu
- Date: Wed, 12 Feb 2020 19:02:23 +0000 (UTC)
commit 04e9e713e2ee41250a3c92fed67c70cab84f518d
Author: Sabri Ünal <libreajans gmail com>
Date: Wed Feb 12 19:02:06 2020 +0000
ui: Add shortcut for primary menu
The HIG has a standard shortcut for the primary menu:
https://developer.gnome.org/hig/stable/keyboard-input.html.en
https://gitlab.gnome.org/GNOME/polari/merge_requests/144
data/resources/help-overlay.ui | 16 +++++++++++++++-
data/resources/main-window.ui | 1 +
2 files changed, 16 insertions(+), 1 deletion(-)
---
diff --git a/data/resources/help-overlay.ui b/data/resources/help-overlay.ui
index 8437a1a..cbac847 100644
--- a/data/resources/help-overlay.ui
+++ b/data/resources/help-overlay.ui
@@ -42,6 +42,20 @@
<property name="accelerator"><Primary>e</property>
</object>
</child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">True</property>
+ <property name="title" translatable="yes" context="shortcut window">Show Help</property>
+ <property name="accelerator">F1</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">True</property>
+ <property name="title" translatable="yes" context="shortcut window">Open Menu</property>
+ <property name="accelerator">F10</property>
+ </object>
+ </child>
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">True</property>
@@ -53,7 +67,7 @@
<object class="GtkShortcutsShortcut">
<property name="visible">True</property>
<property name="title" translatable="yes" context="shortcut window">Keyboard
Shortcuts</property>
- <property name="accelerator"><Primary>question <Primary>F1</property>
+ <property name="accelerator"><Primary>question</property>
</object>
</child>
</object>
diff --git a/data/resources/main-window.ui b/data/resources/main-window.ui
index bf89864..d3d50bf 100644
--- a/data/resources/main-window.ui
+++ b/data/resources/main-window.ui
@@ -80,6 +80,7 @@
<property name="halign">end</property>
<property name="valign">center</property>
<property name="menu-model">hamburgerMenu</property>
+ <accelerator key="F10" signal="activate"/>
<style>
<class name="image-button"/>
</style>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]