[evince] shell: Add missed shortcut keys in help overlay



commit c65066fce9d2c53be77aa445288a97c9d02cce41
Author: Yi-Soo An <yisooan gmail com>
Date:   Tue Jun 26 15:00:22 2018 +0900

    shell: Add missed shortcut keys in help overlay
    
    A few shortcut keys were missed and it could make
    users get confused that one of them exist or not.
    
    Add following keys
    - Ctrl+D for adding bookmark.
    - Ctrl+I for inverting colors.
    - D for toggling dual page.
    - N for going to next page.
    - P for going to previous page.
    - F9 for toggling sidebar.
    - F7 for toggling caret navigation.
    
    Closes #890, #786

 shell/help-overlay.ui | 110 +++++++++++++++++++++++++++++++++++++++-----------
 1 file changed, 86 insertions(+), 24 deletions(-)
---
diff --git a/shell/help-overlay.ui b/shell/help-overlay.ui
index cd69894a..4d3e9dd4 100644
--- a/shell/help-overlay.ui
+++ b/shell/help-overlay.ui
@@ -7,6 +7,34 @@
         <property name="visible">True</property>
         <property name="section-name">shortcuts</property>
         <property name="max-height">13</property>
+        <child>
+          <object class="GtkShortcutsGroup">
+            <property name="visible">True</property>
+            <property name="title" translatable="yes" context="shortcut window">General</property>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">True</property>
+                <property name="title" translatable="yes" context="shortcut window">Add bookmark</property>
+                <property name="accelerator">&lt;Primary&gt;D</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">True</property>
+                <property name="title" translatable="yes" context="shortcut window">Toggle inverted 
colors</property>
+                <property name="accelerator">&lt;Primary&gt;I</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">True</property>
+                <property name="title" translatable="yes" context="shortcut window">Toggle dual 
page</property>
+                <property name="accelerator">d</property>
+              </object>
+            </child>
+          </object>
+        </child>
+
         <child>
           <object class="GtkShortcutsGroup">
             <property name="visible">True</property>
@@ -55,26 +83,7 @@
             </child>
           </object>
         </child>
-        <child>
-          <object class="GtkShortcutsGroup">
-            <property name="visible">True</property>
-            <property name="title" translatable="yes" context="shortcut window">Window</property>
-            <child>
-              <object class="GtkShortcutsShortcut">
-                <property name="visible">True</property>
-                <property name="title" translatable="yes" context="shortcut window">Toggle 
fullscreen</property>
-                <property name="accelerator">F11</property>
-              </object>
-            </child>
-            <child>
-              <object class="GtkShortcutsShortcut">
-                <property name="visible">True</property>
-                <property name="title" translatable="yes" context="shortcut window">Enter presentation 
mode</property>
-                <property name="accelerator">F5</property>
-              </object>
-            </child>
-          </object>
-        </child>
+
         <child>
           <object class="GtkShortcutsGroup">
             <property name="visible">True</property>
@@ -95,6 +104,7 @@
             </child>
           </object>
         </child>
+
         <child>
           <object class="GtkShortcutsGroup">
             <property name="visible">True</property>
@@ -120,6 +130,20 @@
                 <property name="accelerator">Page_Up Page_Down</property>
               </object>
             </child>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">True</property>
+                <property name="title" translatable="yes" context="shortcut window">Go to next 
page</property>
+                <property name="accelerator">n</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">True</property>
+                <property name="title" translatable="yes" context="shortcut window">Go to previous 
page</property>
+                <property name="accelerator">p</property>
+              </object>
+            </child>
             <child>
               <object class="GtkShortcutsShortcut">
                 <property name="visible">True</property>
@@ -150,6 +174,7 @@
             </child>
           </object>
         </child>
+
         <child>
           <object class="GtkShortcutsGroup">
             <property name="visible">True</property>
@@ -177,6 +202,7 @@
             </child>
           </object>
         </child>
+
         <child>
           <object class="GtkShortcutsGroup">
             <property name="visible">True</property>
@@ -208,8 +234,8 @@
                 <property name="title" translatable="yes" context="shortcut window">Zoom out</property>
                 <property name="accelerator">&lt;Primary&gt;minus</property>
               </object>
-           </child>
-           <child>
+                 </child>
+                 <child>
               <object class="GtkShortcutsShortcut">
                 <property name="visible">True</property>
                 <property name="title" translatable="yes" context="shortcut window">Fit page</property>
@@ -222,8 +248,8 @@
                 <property name="title" translatable="yes" context="shortcut window">Fit width</property>
                 <property name="accelerator">w</property>
               </object>
-           </child>
-           <child>
+                 </child>
+                 <child>
               <object class="GtkShortcutsShortcut">
                 <property name="visible">True</property>
                 <property name="title" translatable="yes" context="shortcut window">Automatic zoom</property>
@@ -232,6 +258,42 @@
             </child>
           </object>
         </child>
+
+        <child>
+          <object class="GtkShortcutsGroup">
+            <property name="visible">True</property>
+            <property name="title" translatable="yes" context="shortcut window">Window</property>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">True</property>
+                <property name="title" translatable="yes" context="shortcut window">Toggle 
fullscreen</property>
+                <property name="accelerator">F11</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">True</property>
+                <property name="title" translatable="yes" context="shortcut window">Toggle sidebar</property>
+                <property name="accelerator">F9</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">True</property>
+                <property name="title" translatable="yes" context="shortcut window">Toggle caret 
navigation</property>
+                <property name="accelerator">F7</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkShortcutsShortcut">
+                <property name="visible">True</property>
+                <property name="title" translatable="yes" context="shortcut window">Enter presentation 
mode</property>
+                <property name="accelerator">F5</property>
+              </object>
+            </child>
+          </object>
+        </child>
+
         <child>
           <object class="GtkShortcutsGroup">
             <property name="visible">True</property>


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