This commit is contained in:
Maximilian Hils 2015-11-01 18:39:55 +01:00
commit 1bf34e6f45
3 changed files with 7 additions and 2 deletions

View File

@ -96,6 +96,10 @@ def format_keyvals(lst, key="key", val="text", indent=0):
def shortcuts(k):
if k == " ":
k = "page down"
elif k == "ctrl f":
k = "page down"
elif k == "ctrl b":
k = "page up"
elif k == "j":
k = "down"
elif k == "k":

View File

@ -519,10 +519,10 @@ class FlowView(tabs.Tabs):
self._w.keypress(size, key)
elif key == "a":
self.flow.accept_intercept(self.master)
self.master.view_flow(self.flow)
signals.flow_change.send(self, flow = self.flow)
elif key == "A":
self.master.accept_all()
self.master.view_flow(self.flow)
signals.flow_change.send(self, flow = self.flow)
elif key == "d":
if self.state.flow_count() == 1:
self.master.view_flowlist()

View File

@ -31,6 +31,7 @@ class HelpView(urwid.ListBox):
("g, G", "go to beginning, end"),
("space", "page down"),
("pg up/down", "page up/down"),
("ctrl+b/ctrl+f", "page up/down"),
("arrows", "up, down, left, right"),
]
text.extend(