Reviewers: ,
Please review this at http://codereview.tryton.org/550003/ Affected files: M tryton/gui/window/form.py M tryton/gui/window/view_form/view/form.py Index: tryton/gui/window/form.py =================================================================== --- a/tryton/gui/window/form.py +++ b/tryton/gui/window/form.py @@ -597,4 +597,4 @@ def set_cursor(self): if self.screen: - self.screen.set_cursor() + self.screen.set_cursor(reset_view=False) Index: tryton/gui/window/view_form/view/form.py =================================================================== --- a/tryton/gui/window/view_form/view/form.py +++ b/tryton/gui/window/view_form/view/form.py @@ -145,6 +145,8 @@ notebook.set_current_page(0) if self.cursor_widget in self.widgets: self.widgets[self.cursor_widget][0].grab_focus() + elif not self.widget.has_focus(): + self.widgets[self.cursor_widget][0].grab_focus() record = self.screen.current_record position = reduce(lambda x, y: x + len(y), self.widgets, 0) focus_widget = None -- [email protected] mailing list
