Improve test on focused widget
issue2856 review585005
This commit is contained in:
1 parent
d857a417ca
commit
2455f6dabf
1 file changed
+3
-1
@@ -82,7 +82,9 @@ class ViewForm(ParserView):
|
||||
field = record.group.fields[name]
|
||||
for widget in widgets:
|
||||
if (not focused_widget
|
||||
or widget.widget.get_focus_child()):
|
||||
or widget.widget.is_focus()
|
||||
or (isinstance(widget.widget, gtk.Container)
|
||||
and widget.widget.get_focus_child())):
|
||||
widget.set_value(record, field)
|
||||
|
||||
def sel_ids_get(self):
|
||||
|
||||
Reference in new issue
Block a user