Emacs style CTL + u for clearing the message_textview

This commit is contained in:
Travis Shirk 2006-01-08 05:11:56 +00:00
parent c033a670d1
commit 1e49d5be44
1 changed files with 3 additions and 0 deletions

View File

@ -172,6 +172,9 @@ class ChatControlBase(MessageControl):
self.msg_textview.grab_focus()
# Paste into the msg textview
self.msg_textview.emit('key_press_event', event)
elif event.keyval == gtk.keysyms.u:
# emacs style clear line
self.clear(self.msg_textview) # clear message textview too
elif event.keyval == gtk.keysyms.e and \
(event.state & gtk.gdk.MOD1_MASK): # alt + E opens emoticons menu
if gajim.config.get('useemoticons'):