diff --git a/tryton/tryton/gui/window/view_form/view/form_gtk/sourceeditor.py b/tryton/tryton/gui/window/view_form/view/form_gtk/sourceeditor.py index e2db4501d2f..6312778c240 100644 --- a/tryton/tryton/gui/window/view_form/view/form_gtk/sourceeditor.py +++ b/tryton/tryton/gui/window/view_form/view/form_gtk/sourceeditor.py @@ -155,6 +155,7 @@ def __init__(self, view, attrs): self.search_entry.props.max_width_chars = 40 self.search_entry.props.placeholder_text = _("Search") self.search_entry.connect('activate', self.do_search) + self.search_entry.connect('focus-out-event', self.do_search) self.search_entry.set_icon_from_icon_name( Gtk.EntryIconPosition.PRIMARY, 'system-search-symbolic') self.replace_entry = Gtk.Entry()