console: fix body scrolling

This commit is contained in:
Aldo Cortesi 2015-03-31 15:59:54 +13:00
parent 82997cb311
commit 44fb42185f
2 changed files with 2 additions and 1 deletions

View File

@ -36,7 +36,7 @@ class Searchable(urwid.ListBox):
if key == "N":
self.find_next(True)
else:
return key
super(self.__class__, self).keypress(size, key)
def set_search(self, text):
self.state.last_search = text

View File

@ -33,3 +33,4 @@ class Tabs(urwid.WidgetWrap):
body = self.tabs[self.tab_offset][1](),
header = headers
)
self._w.set_focus("body")