[gnome-sound-recorder/bilelmoussaoui/better-shortcuts: 3/11] misc: better shortcuts




commit 22e5796b08271595cbe46e41d81f3987c7254158
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date:   Wed Sep 9 15:20:15 2020 +0200

    misc: better shortcuts

 data/ui/help-overlay.ui | 22 +++++++++++-----------
 src/application.js      | 14 +++++++-------
 2 files changed, 18 insertions(+), 18 deletions(-)
---
diff --git a/data/ui/help-overlay.ui b/data/ui/help-overlay.ui
index fc559ef..d3d25d2 100644
--- a/data/ui/help-overlay.ui
+++ b/data/ui/help-overlay.ui
@@ -44,28 +44,28 @@
               <object class="GtkShortcutsShortcut">
                 <property name="visible">1</property>
                 <property name="accelerator">&lt;ctrl&gt;R</property>
-                <property name="title" translatable="yes" context="shortcut window">Start/Resume 
Recording</property>
+                <property name="title" translatable="yes" context="shortcut window">Start 
Recording</property>
               </object>
             </child>
             <child>
               <object class="GtkShortcutsShortcut">
                 <property name="visible">1</property>
-                <property name="accelerator">&lt;ctrl&gt;P</property>
-                <property name="title" translatable="yes" context="shortcut window">Pause</property>
+                <property name="accelerator">space</property>
+                <property name="title" translatable="yes" context="shortcut window">Pause/Resume 
Recording</property>
               </object>
             </child>
             <child>
               <object class="GtkShortcutsShortcut">
                 <property name="visible">1</property>
-                <property name="accelerator">&lt;ctrl&gt;S</property>
-                <property name="title" translatable="yes" context="shortcut window">Stop</property>
+                <property name="accelerator">S</property>
+                <property name="title" translatable="yes" context="shortcut window">Stop Recording</property>
               </object>
             </child>
             <child>
               <object class="GtkShortcutsShortcut">
                 <property name="visible">1</property>
-                <property name="accelerator">&lt;ctrl&gt;C</property>
-                <property name="title" translatable="yes" context="shortcut window">Delete</property>
+                <property name="accelerator">Delete</property>
+                <property name="title" translatable="yes" context="shortcut window">Delete 
Recording</property>
               </object>
             </child>
           </object>
@@ -77,7 +77,7 @@
             <child>
               <object class="GtkShortcutsShortcut">
                 <property name="visible">1</property>
-                <property name="accelerator">P</property>
+                <property name="accelerator">space</property>
                 <property name="title" translatable="yes" context="shortcut window">Play / Pause</property>
               </object>
             </child>
@@ -91,7 +91,7 @@
              <child>
               <object class="GtkShortcutsShortcut">
                 <property name="visible">1</property>
-                <property name="accelerator">F</property>
+                <property name="accelerator">N</property>
                 <property name="title" translatable="yes" context="shortcut window">Seek Forward</property>
               </object>
             </child>
@@ -99,14 +99,14 @@
               <object class="GtkShortcutsShortcut">
                 <property name="visible">1</property>
                 <property name="accelerator">Delete</property>
-                <property name="title" translatable="yes" context="shortcut window">Delete 
Recording</property>
+                <property name="title" translatable="yes" context="shortcut window">Delete</property>
               </object>
             </child>
              <child>
               <object class="GtkShortcutsShortcut">
                 <property name="visible">1</property>
                 <property name="accelerator">F2</property>
-                <property name="title" translatable="yes" context="shortcut window">Rename 
Recording</property>
+                <property name="title" translatable="yes" context="shortcut window">Rename</property>
               </object>
             </child>
              <child>
diff --git a/src/application.js b/src/application.js
index cba91d1..24f0aac 100644
--- a/src/application.js
+++ b/src/application.js
@@ -70,14 +70,14 @@ var Application = GObject.registerClass(class Application extends Gtk.Applicatio
         this.add_accelerator('F10', 'win.open-primary-menu', null);
         this.add_accelerator('<Primary>question', 'win.show-help-overlay', null);
         this.add_accelerator('<Primary>r', 'recorder.start', null);
-        this.add_accelerator('<Primary>p', 'recorder.pause', null);
-        this.add_accelerator('<Primary>r', 'recorder.resume', null);
-        this.add_accelerator('<Primary>c', 'recorder.cancel', null);
-        this.add_accelerator('<Primary>s', 'recorder.stop', null);
-        this.add_accelerator('p', 'recording.play', null);
-        this.add_accelerator('p', 'recording.pause', null);
+        this.add_accelerator('space', 'recorder.pause', null);
+        this.add_accelerator('space', 'recorder.resume', null);
+        this.add_accelerator('Delete', 'recorder.cancel', null);
+        this.add_accelerator('s', 'recorder.stop', null);
+        this.add_accelerator('space', 'recording.play', null);
+        this.add_accelerator('space', 'recording.pause', null);
         this.add_accelerator('b', 'recording.seek-backward', null);
-        this.add_accelerator('f', 'recording.seek-forward', null);
+        this.add_accelerator('n', 'recording.seek-forward', null);
         this.add_accelerator('F2', 'recording.rename', null);
         this.add_accelerator('Delete', 'recording.delete', null);
         this.add_accelerator('<Primary>s', 'recording.export', null);


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