Fixed previous changeset and prevent traceback in command system
This commit is contained in:
parent
b74852014e
commit
4b61a8682c
|
@ -175,7 +175,7 @@ class CommandTools:
|
|||
Add given text to the input history, so user can scroll through
|
||||
it using ctrl + up/down arrow keys.
|
||||
"""
|
||||
self.save_sent_message(text)
|
||||
self.save_message(text, 'sent')
|
||||
|
||||
@property
|
||||
def connection(self):
|
||||
|
|
|
@ -1809,7 +1809,7 @@ class GroupchatControl(ChatControlBase):
|
|||
|
||||
label = self.get_seclabel()
|
||||
if message != '' or message != '\n':
|
||||
self.save_sent_message(message)
|
||||
self.save_message(message, 'sent')
|
||||
|
||||
# Send the message
|
||||
gajim.connections[self.account].send_gc_message(self.room_jid,
|
||||
|
|
|
@ -345,6 +345,18 @@ gtk.binding_entry_add_signal(MessageTextView, gtk.keysyms.Down,
|
|||
gtk.gdk.CONTROL_MASK, 'mykeypress', int, gtk.keysyms.Down,
|
||||
gtk.gdk.ModifierType, gtk.gdk.CONTROL_MASK)
|
||||
|
||||
# CTRL + SHIFT + UP
|
||||
gtk.binding_entry_add_signal(MessageTextView, gtk.keysyms.Up,
|
||||
gtk.gdk.CONTROL_MASK | gtk.gdk.SHIFT_MASK, 'mykeypress', int,
|
||||
gtk.keysyms.Up, gtk.gdk.ModifierType, gtk.gdk.CONTROL_MASK |
|
||||
gtk.gdk.SHIFT_MASK)
|
||||
|
||||
# CTRL + SHIFT + DOWN
|
||||
gtk.binding_entry_add_signal(MessageTextView, gtk.keysyms.Down,
|
||||
gtk.gdk.CONTROL_MASK | gtk.gdk.SHIFT_MASK, 'mykeypress', int,
|
||||
gtk.keysyms.Down, gtk.gdk.ModifierType, gtk.gdk.CONTROL_MASK |
|
||||
gtk.gdk.SHIFT_MASK)
|
||||
|
||||
# ENTER
|
||||
gtk.binding_entry_add_signal(MessageTextView, gtk.keysyms.Return,
|
||||
0, 'mykeypress', int, gtk.keysyms.Return,
|
||||
|
|
Loading…
Reference in New Issue