~zanneth/hirogen

1ca5d66b74cbe8ad45a8b99f262d7c25d330699a — Charles Magahern 2 years ago 3f10676
Add 'KP_Enter' as accelerator for dialogs
3 files changed, 5 insertions(+), 1 deletions(-)

M res/find-dialog.ui
M res/goto-dialog.ui
M src/document_window.rs
M res/find-dialog.ui => res/find-dialog.ui +1 -0
@@ 47,6 47,7 @@
                <property name="receives_default">True</property>
                <property name="use_stock">True</property>
                <accelerator key="Return" signal="activate"/>
                <accelerator key="KP_Enter" signal="activate"/>
              </object>
              <packing>
                <property name="expand">True</property>

M res/goto-dialog.ui => res/goto-dialog.ui +1 -0
@@ 48,6 48,7 @@
                <property name="receives_default">True</property>
                <property name="use_stock">True</property>
                <accelerator key="Return" signal="activate"/>
                <accelerator key="KP_Enter" signal="activate"/>
              </object>
              <packing>
                <property name="expand">True</property>

M src/document_window.rs => src/document_window.rs +3 -1
@@ 566,7 566,9 @@ impl DocumentWindow
                });
            }
            
            self.scroll_to_selection();
            if !self.is_selection_visible() {
                self.scroll_to_selection();
            }
            self.reload_ui();
        }
    }