last_key_tabs must be set to False when we press another key than Tabulation

(now /msg ni[TAB] doesn't remove the space before ni)
This commit is contained in:
Yann Leboulanger 2006-01-10 16:32:43 +00:00
parent c7e85be2c1
commit 9901ebbca0
1 changed files with 3 additions and 0 deletions

View File

@ -207,6 +207,9 @@ class ChatControlBase(MessageControl):
return False
def _on_message_textview_key_press_event(self, widget, event):
if self.widget_name == 'muc_child_vbox':
if event.keyval not in (gtk.keysyms.ISO_Left_Tab, gtk.keysyms.Tab):
self.last_key_tabs = False
if event.state & gtk.gdk.SHIFT_MASK:
# SHIFT + PAGE_[UP|DOWN]: send to conv_textview
if event.keyval == gtk.keysyms.Page_Down or \