From 15f7340661e0ef4b375e54dabc1f3c1f6f885c38 Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Sat, 1 Jan 2011 15:37:35 +0000 Subject: fixed #1901 Alt-U and Alt-Y scrolls the participant-list in MUCs --- src/tabs.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/tabs.py') diff --git a/src/tabs.py b/src/tabs.py index de2d3996..b106592b 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -353,6 +353,8 @@ class MucTab(ChatTab): # keys self.key_func['^I'] = self.completion self.key_func['M-i'] = self.completion + self.key_func['M-u'] = self.scroll_user_list_down + self.key_func['M-y'] = self.scroll_user_list_up # commands self.commands['ignore'] = (self.command_ignore, _("Usage: /ignore \nIgnore: Ignore a specified nickname."), None) self.commands['unignore'] = (self.command_unignore, _("Usage: /unignore \nUnignore: Remove the specified nickname from the ignore list."), None) @@ -364,6 +366,14 @@ class MucTab(ChatTab): self.commands['recolor'] = (self.command_recolor, _('Usage: /recolor\nRecolor: Re-assign a color to all participants of the current room, based on the last time they talked. Use this if the participants currently talking have too many identical colors.'), None) self.resize() + def scroll_user_list_up(self): + self.user_win.scroll_up() + self.core.refresh_window() + + def scroll_user_list_down(self): + self.user_win.scroll_down() + self.core.refresh_window() + def command_recolor(self, arg): """ Re-assign color to the participants of the room -- cgit v1.2.3