# HG changeset patch # User Laurent Bessard # Date 1368046420 -7200 # Node ID 0ead830daf266cb87a195e66a6e62bf5b1848346 # Parent 233681f2a00e9ab7e7e46bd22b0a386393cf6b04 Fixed bug when pressing Return key in FindInPouDialog diff -r 233681f2a00e -r 0ead830daf26 dialogs/FindInPouDialog.py --- a/dialogs/FindInPouDialog.py Wed May 08 22:52:55 2013 +0200 +++ b/dialogs/FindInPouDialog.py Wed May 08 22:53:40 2013 +0200 @@ -97,6 +97,7 @@ flag=wx.LEFT|wx.RIGHT|wx.BOTTOM|wx.ALIGN_RIGHT) self.FindButton = wx.Button(panel, label=_("Find")) + self.FindButton.SetDefault() self.Bind(wx.EVT_BUTTON, self.OnFindButton, self.FindButton) buttons_sizer.AddWindow(self.FindButton, border=5, flag=wx.RIGHT)