From ad33a28e2844939649903fe4f552439715f1531c Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Sat, 11 Sep 2010 20:07:50 +0000 Subject: ctrl+v moves the new-messages separator at the bottom. fixed #1831 --- src/gui.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/gui.py b/src/gui.py index 9c33d2e7..d41cebf9 100644 --- a/src/gui.py +++ b/src/gui.py @@ -106,7 +106,7 @@ class Gui(object): 'say': (self.command_say, _('Usage: /say \nSay: Just send the message. Useful if you want your message to begin with a "/"')), 'whois': (self.command_whois, _('Usage: /whois \nWhois: Request many informations about the user.')), 'theme': (self.command_theme, _('Usage: /theme\nTheme: Reload the theme defined in the config file.')), - '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 participant currently talking have too many identical colors.')), + '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.')), } self.key_func = { @@ -144,7 +144,8 @@ class Gui(object): '^E': self.window.input.key_end, 'M-f': self.window.input.jump_word_right, '^X': self.go_to_important_room, - 'M-b': self.window.input.jump_word_left + 'M-b': self.window.input.jump_word_left, + '^V': self.move_separator, } # Add handlers @@ -1180,6 +1181,14 @@ class Gui(object): """ webbrowser.open(url) + def move_separator(self): + """ + Move the new-messages separator at the bottom on the current + text. + """ + self.current_room().remove_line_separator() + self.current_room().add_line_separator() + def command_nick(self, arg): """ /nick -- cgit v1.2.3