[gnome-calculator] Added F10 shortcut for primary menu (fixes #148)
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calculator] Added F10 shortcut for primary menu (fixes #148)
- Date: Thu, 23 Jan 2020 20:22:20 +0000 (UTC)
commit c86803282ad7411b93886a1c7dfebf393386c0a8
Author: Robert Roth <robert roth off gmail com>
Date: Thu Jan 23 22:22:18 2020 +0200
Added F10 shortcut for primary menu (fixes #148)
src/math-shortcuts.ui | 11 +++++++++--
src/math-window.ui | 8 +++++++-
2 files changed, 16 insertions(+), 3 deletions(-)
---
diff --git a/src/math-shortcuts.ui b/src/math-shortcuts.ui
index 04e03bc8..df91ac11 100644
--- a/src/math-shortcuts.ui
+++ b/src/math-shortcuts.ui
@@ -8,7 +8,7 @@
<object class="GtkShortcutsSection">
<property name="visible">1</property>
<property name="section-name">shortcuts</property>
- <property name="max-height">13</property>
+ <property name="max-height">14</property>
<child>
<object class="GtkShortcutsGroup">
<property name="visible">1</property>
@@ -38,7 +38,14 @@
<object class="GtkShortcutsShortcut">
<property name="visible">1</property>
<property name="accelerator">F1</property>
- <property name="title" translatable="yes" context="shortcut window">Open help</property>
+ <property name="title" translatable="yes" context="shortcut window">Show help</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkShortcutsShortcut">
+ <property name="visible">1</property>
+ <property name="accelerator">F10</property>
+ <property name="title" translatable="yes" context="shortcut window">Open menu</property>
</object>
</child>
<child>
diff --git a/src/math-window.ui b/src/math-window.ui
index c0e4f9c6..0d9cf81d 100644
--- a/src/math-window.ui
+++ b/src/math-window.ui
@@ -112,7 +112,7 @@
<property name="menu_model">window_menu</property>
<child internal-child="accessible">
<object class="AtkObject">
- <property name="accessible-name" translatable="yes">Menu</property>
+ <property name="accessible-name" translatable="yes">Mode selection</property>
</object>
</child>
<child>
@@ -156,6 +156,12 @@
<property name="can_focus">False</property>
<property name="receives_default">False</property>
<property name="menu_model">primary_menu</property>
+ <accelerator key="F10" signal="clicked"/>
+ <child internal-child="accessible">
+ <object class="AtkObject">
+ <property name="accessible-name" translatable="yes">Primary menu</property>
+ </object>
+ </child>
<child>
<object class="GtkImage">
<property name="visible">True</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]