diff options
Diffstat (limited to 'urwid/treetools.py')
-rw-r--r-- | urwid/treetools.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/urwid/treetools.py b/urwid/treetools.py index f2b1aad..2d31731 100644 --- a/urwid/treetools.py +++ b/urwid/treetools.py @@ -427,10 +427,6 @@ class TreeListBox(urwid.ListBox): self.move_focus_to_parent(size) elif input == '-': self.collapse_focus_parent(size) - elif input == 'home': - self.focus_home(size) - elif input == 'end': - self.focus_end(size) else: return input @@ -467,6 +463,12 @@ class TreeListBox(urwid.ListBox): self.change_focus(size, pos.get_parent()) + def _keypress_max_left(self, size): + return self.focus_home(size) + + def _keypress_max_right(self, size): + return self.focus_end(size) + def focus_home(self, size): """Move focus to very top.""" |