Set cursor to last row when Esc is pressed on the last row
This commit is contained in:
1 parent
71a17529ee
commit
78e19329f5
1 file changed
+3
@@ -198,6 +198,9 @@ class EditableTreeView(gtk.TreeView):
|
||||
self.screen.current_model = False
|
||||
if not path[0]:
|
||||
self.screen.current_model = False
|
||||
if path[0] == len(self.screen.models.models) \
|
||||
and path[0]:
|
||||
path = (path[0] - 1,)
|
||||
self.screen.display()
|
||||
self.set_cursor(path, column, False)
|
||||
elif event.keyval in (gtk.keysyms.F3, gtk.keysyms.F2):
|
||||
|
||||
Reference in new issue
Block a user