From aaa36ea7a3893d16e036834f54f13553b6f8ce79 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 8 Apr 2012 17:32:45 +0200 Subject: [PATCH] don't enable roster filter when we press a unicode key with alt, control or shift (like Ctrl+i) --- src/roster_window.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/roster_window.py b/src/roster_window.py index 85b943c13..5b4a642cf 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -3412,7 +3412,9 @@ class RosterWindow: elif type_ == 'agent': self.on_remove_agent(widget, list_) - elif gtk.gdk.keyval_to_unicode(event.keyval): # if we got unicode symbol + elif not (event.state & (gtk.gdk.SHIFT_MASK | gtk.gdk.CONTROL_MASK | \ + gtk.gdk.MOD1_MASK)) and gtk.gdk.keyval_to_unicode(event.keyval): + # if we got unicode symbol without ctrl / shift / alt num = gtk.gdk.keyval_to_unicode(event.keyval) self.enable_rfilter(unichr(num))