Improve focus chain when there is add_remove on One2Many
This commit is contained in:
@@ -134,7 +134,11 @@ def _create_menu(self, attrs):
|
||||
but_switch.add(img_switch)
|
||||
but_switch.set_relief(gtk.RELIEF_NONE)
|
||||
hbox.pack_start(but_switch, expand=False, fill=False)
|
||||
hbox.set_focus_chain([])
|
||||
|
||||
if attrs.get('add_remove'):
|
||||
hbox.set_focus_chain([self.wid_text])
|
||||
else:
|
||||
hbox.set_focus_chain([])
|
||||
|
||||
tooltips.enable()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user