瀏覽代碼

Keyboard navigation for all menus

Michael Hanke 1 年之前
父節點
當前提交
d491a3b951
共有 3 個文件被更改,包括 11 次插入10 次删除
  1. 1 1
      datalad_gooey/complete_api.py
  2. 8 8
      datalad_gooey/resources/ui/main_window.ui
  3. 2 1
      datalad_gooey/simplified_api.py

+ 1 - 1
datalad_gooey/complete_api.py

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

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

@@ -93,8 +93,8 @@
               <rect>
                <x>0</x>
                <y>0</y>
-               <width>381</width>
-               <height>152</height>
+               <width>428</width>
+               <height>212</height>
               </rect>
              </property>
             </widget>
@@ -234,7 +234,7 @@
     <rect>
      <x>0</x>
      <y>0</y>
-     <width>800</width>
+     <width>891</width>
      <height>21</height>
     </rect>
    </property>
@@ -266,7 +266,7 @@
     </widget>
     <widget class="QMenu" name="menuTheme">
      <property name="title">
-      <string>Theme</string>
+      <string>&amp;Theme</string>
      </property>
      <addaction name="actionViewTheme_system"/>
      <addaction name="actionViewTheme_light"/>
@@ -296,7 +296,7 @@
     <bool>true</bool>
    </property>
    <property name="text">
-    <string>Check for new version</string>
+    <string>Check for new &amp;version</string>
    </property>
   </action>
   <action name="action_Quit">
@@ -306,17 +306,17 @@
   </action>
   <action name="actionViewTheme_system">
    <property name="text">
-    <string>System</string>
+    <string>&amp;System</string>
    </property>
   </action>
   <action name="actionViewTheme_light">
    <property name="text">
-    <string>Light</string>
+    <string>&amp;Light</string>
    </property>
   </action>
   <action name="actionViewTheme_dark">
    <property name="text">
-    <string>Dark</string>
+    <string>&amp;Dark</string>
    </property>
   </action>
   <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(
-    title='Simplified',
+    # may contain keyboard navigation hints
+    title='&Simplified',
     description='Simplified access to the most essential operations',
     options=dict(
         disable_manual_path_input=True,