Browse Source

Added access keys to the Sink screen

Now keyboard navigation is more straightforward than tabbing between all
the widgets: you can just use Alt+[letter] to activate any control you
want!
Clara Hobbs 7 years ago
parent
commit
3b6bde9550
1 changed files with 14 additions and 5 deletions
  1. 14
    5
      data/pd-buddy-gtk.ui

+ 14
- 5
data/pd-buddy-gtk.ui View File

@@ -185,8 +185,10 @@
185 185
                                                 <property name="can_focus">False</property>
186 186
                                                 <property name="halign">start</property>
187 187
                                                 <property name="hexpand">True</property>
188
-                                                <property name="label" translatable="yes">Voltage</property>
188
+                                                <property name="label" translatable="yes">_Voltage</property>
189
+                                                <property name="use_underline">True</property>
189 190
                                                 <property name="justify">right</property>
191
+                                                <property name="mnemonic_widget">voltage-combobox</property>
190 192
                                               </object>
191 193
                                               <packing>
192 194
                                                 <property name="left_attach">0</property>
@@ -249,8 +251,10 @@
249 251
                                                 <property name="can_focus">False</property>
250 252
                                                 <property name="halign">start</property>
251 253
                                                 <property name="hexpand">True</property>
252
-                                                <property name="label" translatable="yes">Current</property>
254
+                                                <property name="label" translatable="yes">_Current</property>
255
+                                                <property name="use_underline">True</property>
253 256
                                                 <property name="justify">right</property>
257
+                                                <property name="mnemonic_widget">current-spinbutton</property>
254 258
                                               </object>
255 259
                                               <packing>
256 260
                                                 <property name="left_attach">0</property>
@@ -327,10 +331,11 @@
327 331
                                                 <property name="layout_style">expand</property>
328 332
                                                 <child>
329 333
                                                   <object class="GtkToggleButton" id="giveback-toggle">
330
-                                                    <property name="label" translatable="yes">GiveBack</property>
334
+                                                    <property name="label" translatable="yes">_GiveBack</property>
331 335
                                                     <property name="visible">True</property>
332 336
                                                     <property name="can_focus">True</property>
333 337
                                                     <property name="receives_default">True</property>
338
+                                                    <property name="use_underline">True</property>
334 339
                                                     <signal name="toggled" handler="on_giveback_toggle_toggled" swapped="no"/>
335 340
                                                   </object>
336 341
                                                   <packing>
@@ -411,8 +416,10 @@
411 416
                                                 <property name="can_focus">False</property>
412 417
                                                 <property name="halign">start</property>
413 418
                                                 <property name="hexpand">True</property>
414
-                                                <property name="label" translatable="yes">Output</property>
419
+                                                <property name="label" translatable="yes">_Output</property>
420
+                                                <property name="use_underline">True</property>
415 421
                                                 <property name="justify">right</property>
422
+                                                <property name="mnemonic_widget">output-switch</property>
416 423
                                               </object>
417 424
                                               <packing>
418 425
                                                 <property name="left_attach">0</property>
@@ -455,8 +462,10 @@
455 462
                                                 <property name="visible">True</property>
456 463
                                                 <property name="can_focus">False</property>
457 464
                                                 <property name="halign">start</property>
458
-                                                <property name="label" translatable="yes">Source Capabilities</property>
465
+                                                <property name="label" translatable="yes">_Source Capabilities</property>
466
+                                                <property name="use_underline">True</property>
459 467
                                                 <property name="justify">right</property>
468
+                                                <property name="mnemonic_widget">source-cap-row</property>
460 469
                                               </object>
461 470
                                               <packing>
462 471
                                                 <property name="left_attach">0</property>

Loading…
Cancel
Save