summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-09-11 20:07:50 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-09-11 20:07:50 +0000
commitad33a28e2844939649903fe4f552439715f1531c (patch)
treef085b1509375a8ca09b4eeba27770c4247f3bf3d /src
parentc2ca29574766568eb4a865578e4e99ab4a13c903 (diff)
downloadpoezio-ad33a28e2844939649903fe4f552439715f1531c.tar.gz
poezio-ad33a28e2844939649903fe4f552439715f1531c.tar.bz2
poezio-ad33a28e2844939649903fe4f552439715f1531c.tar.xz
poezio-ad33a28e2844939649903fe4f552439715f1531c.zip
ctrl+v moves the new-messages separator at the bottom. fixed #1831
Diffstat (limited to 'src')
-rw-r--r--src/gui.py13
1 files 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 <message>\nSay: Just send the message. Useful if you want your message to begin with a "/"')),
'whois': (self.command_whois, _('Usage: /whois <nickname>\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 <nickname>