This commit is contained in:
Ujjwal Verma 2017-06-06 03:16:00 +05:30
parent 387235b580
commit dfa693ebd3
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ class EventLog(urwid.ListBox):
def keypress(self, size, key): def keypress(self, size, key):
if key == "z": if key == "z":
self.master.clear_events() self.clear_events()
key = None key = None
elif key == "m_end": elif key == "m_end":
self.set_focus(len(self.walker) - 1) self.set_focus(len(self.walker) - 1)

View File

@ -69,7 +69,7 @@ class FlowItem(urwid.WidgetWrap):
def mouse_event(self, size, event, button, col, row, focus): def mouse_event(self, size, event, button, col, row, focus):
if event == "mouse press" and button == 1: if event == "mouse press" and button == 1:
if self.flow.request: if self.flow.request:
self.master.view_flow(self.flow) self.master.commands.call("console.view.flow @focus")
return True return True
def keypress(self, xxx_todo_changeme, key): def keypress(self, xxx_todo_changeme, key):