[gnome-calculator] Added accels for changing mode (bgo#740503)



commit 0f146b9795fdeebffe9cd5970fa61d25f2e35191
Author: Robert Roth <robert roth off gmail com>
Date:   Wed Oct 19 08:55:05 2016 +0300

    Added accels for changing mode (bgo#740503)

 src/gnome-calculator.vala |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-calculator.vala b/src/gnome-calculator.vala
index 833fb44..112c436 100644
--- a/src/gnome-calculator.vala
+++ b/src/gnome-calculator.vala
@@ -92,6 +92,11 @@ public class Calculator : Gtk.Application
         var menu = builder.get_object ("appmenu") as MenuModel;
         set_app_menu (menu);
 
+        set_accels_for_action ("win.mode::basic", {"<alt>B"});
+        set_accels_for_action ("win.mode::advanced", {"<alt>A"});
+        set_accels_for_action ("win.mode::financial", {"<alt>F"});
+        set_accels_for_action ("win.mode::programming", {"<alt>P"});
+        set_accels_for_action ("win.mode::keyboard", {"<alt>K"});
         set_accels_for_action ("win.copy", {"<control>C"});
         set_accels_for_action ("win.paste", {"<control>V"});
         set_accels_for_action ("win.undo", {"<control>Z"});


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