[gnome-calculator] Replaced mode selector shortcuts with ctrl+alt



commit d539734e2d13a21730c346da37b7752c8c532fa3
Author: Robert Roth <robert roth off gmail com>
Date:   Fri Jun 5 16:34:17 2020 +0300

    Replaced mode selector shortcuts with ctrl+alt

 src/gnome-calculator.vala | 10 +++++-----
 src/ui/math-shortcuts.ui  | 10 +++++-----
 2 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/gnome-calculator.vala b/src/gnome-calculator.vala
index 30db7d57..08446a0f 100644
--- a/src/gnome-calculator.vala
+++ b/src/gnome-calculator.vala
@@ -93,11 +93,11 @@ public class Calculator : Gtk.Application
         buttons.programming_base = number_base;
         buttons.mode = button_mode; // FIXME: We load the basic buttons even if we immediately switch to the 
next type
 
-        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", "<alt>T"});
+        set_accels_for_action ("win.mode::basic", {"<control><alt>B"});
+        set_accels_for_action ("win.mode::advanced", {"<control><alt>A"});
+        set_accels_for_action ("win.mode::financial", {"<control><alt>F"});
+        set_accels_for_action ("win.mode::programming", {"<control><alt>P"});
+        set_accels_for_action ("win.mode::keyboard", {"<control><alt>K", "<control><alt>T"});
         set_accels_for_action ("win.copy", {"<control>C"});
         set_accels_for_action ("win.paste", {"<control>V"});
         set_accels_for_action ("win.undo", {"<control>Z"});
diff --git a/src/ui/math-shortcuts.ui b/src/ui/math-shortcuts.ui
index 5ae8368e..3c353f1a 100644
--- a/src/ui/math-shortcuts.ui
+++ b/src/ui/math-shortcuts.ui
@@ -71,35 +71,35 @@
             <child>
               <object class="GtkShortcutsShortcut">
                 <property name="visible">1</property>
-                <property name="accelerator">&lt;alt&gt;b</property>
+                <property name="accelerator">&lt;control&gt;&lt;alt&gt;b</property>
                 <property name="title" translatable="yes" context="shortcut window">Switch to Basic 
mode</property>
               </object>
             </child>
             <child>
               <object class="GtkShortcutsShortcut">
                 <property name="visible">1</property>
-                <property name="accelerator">&lt;alt&gt;a</property>
+                <property name="accelerator">&lt;control&gt;&lt;alt&gt;a</property>
                 <property name="title" translatable="yes" context="shortcut window">Switch to Advanced 
mode</property>
               </object>
             </child>
             <child>
               <object class="GtkShortcutsShortcut">
                 <property name="visible">1</property>
-                <property name="accelerator">&lt;alt&gt;f</property>
+                <property name="accelerator">&lt;control&gt;&lt;alt&gt;f</property>
                 <property name="title" translatable="yes" context="shortcut window">Switch to Financial 
mode</property>
               </object>
             </child>
             <child>
               <object class="GtkShortcutsShortcut">
                 <property name="visible">1</property>
-                <property name="accelerator">&lt;alt&gt;p</property>
+                <property name="accelerator">&lt;control&gt;&lt;alt&gt;p</property>
                 <property name="title" translatable="yes" context="shortcut window">Switch to Programming 
mode</property>
               </object>
             </child>
             <child>
               <object class="GtkShortcutsShortcut">
                 <property name="visible">1</property>
-                <property name="accelerator">&lt;alt&gt;k</property>
+                <property name="accelerator">&lt;control&gt;&lt;alt&gt;k</property>
                 <property name="title" translatable="yes" context="shortcut window">Switch to Keyboard 
mode</property>
               </object>
             </child>


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