Browse Source

Keyboard navigation for all menus

Michael Hanke 1 year ago
parent
commit
d491a3b951

+ 1 - 1
datalad_gooey/complete_api.py

@@ -85,7 +85,7 @@ dataset_api = {
 }
 }
 
 
 gooey_suite = dict(
 gooey_suite = dict(
-    title='Complete',
+    title='&Complete',
     description='Generic access to all command available in this DataLad installation',
     description='Generic access to all command available in this DataLad installation',
     apis=dict(
     apis=dict(
         dataset=dataset_api,
         dataset=dataset_api,

+ 8 - 8
datalad_gooey/resources/ui/main_window.ui

@@ -93,8 +93,8 @@
               <rect>
               <rect>
                <x>0</x>
                <x>0</x>
                <y>0</y>
                <y>0</y>
-               <width>381</width>
-               <height>152</height>
+               <width>428</width>
+               <height>212</height>
               </rect>
               </rect>
              </property>
              </property>
             </widget>
             </widget>
@@ -234,7 +234,7 @@
     <rect>
     <rect>
      <x>0</x>
      <x>0</x>
      <y>0</y>
      <y>0</y>
-     <width>800</width>
+     <width>891</width>
      <height>21</height>
      <height>21</height>
     </rect>
     </rect>
    </property>
    </property>
@@ -266,7 +266,7 @@
     </widget>
     </widget>
     <widget class="QMenu" name="menuTheme">
     <widget class="QMenu" name="menuTheme">
      <property name="title">
      <property name="title">
-      <string>Theme</string>
+      <string>&amp;Theme</string>
      </property>
      </property>
      <addaction name="actionViewTheme_system"/>
      <addaction name="actionViewTheme_system"/>
      <addaction name="actionViewTheme_light"/>
      <addaction name="actionViewTheme_light"/>
@@ -296,7 +296,7 @@
     <bool>true</bool>
     <bool>true</bool>
    </property>
    </property>
    <property name="text">
    <property name="text">
-    <string>Check for new version</string>
+    <string>Check for new &amp;version</string>
    </property>
    </property>
   </action>
   </action>
   <action name="action_Quit">
   <action name="action_Quit">
@@ -306,17 +306,17 @@
   </action>
   </action>
   <action name="actionViewTheme_system">
   <action name="actionViewTheme_system">
    <property name="text">
    <property name="text">
-    <string>System</string>
+    <string>&amp;System</string>
    </property>
    </property>
   </action>
   </action>
   <action name="actionViewTheme_light">
   <action name="actionViewTheme_light">
    <property name="text">
    <property name="text">
-    <string>Light</string>
+    <string>&amp;Light</string>
    </property>
    </property>
   </action>
   </action>
   <action name="actionViewTheme_dark">
   <action name="actionViewTheme_dark">
    <property name="text">
    <property name="text">
-    <string>Dark</string>
+    <string>&amp;Dark</string>
    </property>
    </property>
   </action>
   </action>
   <action name="actionReport_a_problem">
   <action name="actionReport_a_problem">

+ 2 - 1
datalad_gooey/simplified_api.py

@@ -245,7 +245,8 @@ annexed_file_api['get'] = annexed_file_get
 
 
 
 
 gooey_suite = dict(
 gooey_suite = dict(
-    title='Simplified',
+    # may contain keyboard navigation hints
+    title='&Simplified',
     description='Simplified access to the most essential operations',
     description='Simplified access to the most essential operations',
     options=dict(
     options=dict(
         disable_manual_path_input=True,
         disable_manual_path_input=True,