Fix handling of keypresses in treeview

This commit is contained in:
Bastien Jacquet 2014-11-13 14:04:25 +01:00
parent 0301ddd1a6
commit 813075ae2f

View File

@ -875,10 +875,10 @@ class ListView(NavigationView):
return False
if self.model.get_flags() & Gtk.TreeModelFlags.LIST_ONLY:
# Flat list
self._key_press_flat(obj, event)
return self._key_press_flat(obj, event)
else:
# Tree
self._key_press_tree(obj, event)
return self._key_press_tree(obj, event)
def _key_press_flat(self, obj, event):
"""