Reviewers: ,

Description:
tryton: Fix focus chain of Calendar widget

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

Affected files:
  M tryton/gui/window/view_form/view/form_gtk/calendar.py


Index: tryton/gui/window/view_form/view/form_gtk/calendar.py
===================================================================
--- a/tryton/gui/window/view_form/view/form_gtk/calendar.py
+++ b/tryton/gui/window/view_form/view/form_gtk/calendar.py
@@ -29,6 +29,10 @@

     def _readonly_set(self, value):
         self.entry.set_editable(not value)
+        if value:
+            self.widget.set_focus_chain([])
+        else:
+            self.widget.set_focus_chain([self.entry])

     @property
     def modified(self):


Reply via email to