Made detail and event views scrollable with j/k keys as well
This commit is contained in:
parent
f7a4951e0d
commit
a20b39325e
|
@ -146,6 +146,10 @@ class EventView(BaseMode):
|
|||
self.offset += jumplen
|
||||
elif c == curses.KEY_END:
|
||||
self.offset += num_events
|
||||
elif c == ord('j'):
|
||||
self.offset -= 1
|
||||
elif c == ord('k'):
|
||||
self.offset += 1
|
||||
|
||||
if self.offset <= 0:
|
||||
self.offset = 0
|
||||
|
|
|
@ -741,5 +741,9 @@ class TorrentDetail(BaseMode, component.Component):
|
|||
return
|
||||
elif chr(c) == 'h':
|
||||
self.popup = Popup(self,"Help",init_lines=self.__help_lines, height_req=0.75, width_req=65)
|
||||
elif chr(c) == 'j':
|
||||
self.file_list_up()
|
||||
if chr(c) == 'k':
|
||||
self.file_list_down()
|
||||
|
||||
self.refresh()
|
||||
|
|
Loading…
Reference in New Issue