summaryrefslogtreecommitdiff
path: root/src/core.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.py')
-rw-r--r--src/core.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core.py b/src/core.py
index 0b5bb37b..91f69813 100644
--- a/src/core.py
+++ b/src/core.py
@@ -156,6 +156,8 @@ class Core(object):
self.key_func = {
"KEY_PPAGE": self.scroll_page_up,
"KEY_NPAGE": self.scroll_page_down,
+ "^B": self.scroll_line_up,
+ "^F": self.scroll_line_down,
"KEY_F(5)": self.rotate_rooms_left,
"^P": self.rotate_rooms_left,
'kLFT3': self.rotate_rooms_left,
@@ -1130,6 +1132,14 @@ class Core(object):
self.current_tab().on_scroll_up()
self.refresh_window()
+ def scroll_line_up(self, args=None):
+ self.current_tab().on_line_up()
+ self.refresh_window()
+
+ def scroll_line_down(self, args=None):
+ self.current_tab().on_line_down()
+ self.refresh_window()
+
def get_error_message_from_error_stanza(self, stanza):
"""
Takes a stanza of the form <message type='error'><error/></message>