From f1e6689231c6ae00150e9af6f1ea3abd5497f6eb Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Mon, 9 Apr 2012 21:54:54 +0200
Subject: [PATCH] allow to press Shift + a letter to enable roster filter.
 Fixes #7136

---
 src/roster_window.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/roster_window.py b/src/roster_window.py
index 5b4a642cfc..9ba2e87de4 100644
--- a/src/roster_window.py
+++ b/src/roster_window.py
@@ -3412,9 +3412,9 @@ class RosterWindow:
             elif type_ == 'agent':
                 self.on_remove_agent(widget, list_)
 
-        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
+        elif not (event.state & (gtk.gdk.CONTROL_MASK | gtk.gdk.MOD1_MASK)) and\
+        gtk.gdk.keyval_to_unicode(event.keyval):
+            # if we got unicode symbol without ctrl / alt
             num = gtk.gdk.keyval_to_unicode(event.keyval)
             self.enable_rfilter(unichr(num))
 
-- 
GitLab