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 return False
if self.model.get_flags() & Gtk.TreeModelFlags.LIST_ONLY: if self.model.get_flags() & Gtk.TreeModelFlags.LIST_ONLY:
# Flat list # Flat list
self._key_press_flat(obj, event) return self._key_press_flat(obj, event)
else: else:
# Tree # Tree
self._key_press_tree(obj, event) return self._key_press_tree(obj, event)
def _key_press_flat(self, obj, event): def _key_press_flat(self, obj, event):
""" """