Fixed bug when pressing Return key in FindInPouDialog
authorLaurent Bessard
Wed, 08 May 2013 22:53:40 +0200
changeset 1098 0ead830daf26
parent 1097 233681f2a00e
child 1099 d9c28879e55b
Fixed bug when pressing Return key in FindInPouDialog
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)