gui: Make Enter work in the Goto Case dialog.
authorBen Pfaff <blp@cs.stanford.edu>
Tue, 13 Dec 2011 05:35:01 +0000 (21:35 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Tue, 13 Dec 2011 05:35:01 +0000 (21:35 -0800)
Without this change, Enter does nothing in the dialog that Edit|Goto Case
brings up.  With this change, Enter activates the Goto button.

src/ui/gui/goto-case.ui

index 48fb6e4502fd51b3f4fc89758e3d876c18b3fb90..6cea9869a78e64ec32e222498b0768e5f5e0b1ae 100644 (file)
@@ -35,6 +35,7 @@
                <property name="adjustment">adjustment1</property>
                 <property name="can_focus">True</property>
                 <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
+               <property name="activates-default">True</property>
               </object>
               <packing>
                 <property name="position">1</property>
@@ -54,6 +55,7 @@
             <property name="border_width">5</property>
             <property name="layout_style">spread</property>
             <property name="buttons">PSPPIRE_BUTTON_GOTO_MASK | PSPPIRE_BUTTON_CANCEL_MASK</property>
+            <property name="default">PSPPIRE_BUTTON_GOTO_MASK</property>
           </object>
           <packing>
             <property name="expand">False</property>