Reviewers: ,


Please review this at http://codereview.tryton.org/871002/

Affected files:
  tryton/common/button.py


Index: tryton/common/button.py
===================================================================

--- a/tryton/common/button.py
+++ b/tryton/common/button.py
@@ -15,6 +15,7 @@
         super(Button, self).__init__(label=label, stock=None,
             use_underline=True)
         self._set_icon(attrs.get('icon'))
+        self.connect('activate', lambda *a: self.grab_focus())
 
     def _set_icon(self, stock):
         if not stock:

Reply via email to