From 23905492f5720114bb36786078b1fc1b0d32aada Mon Sep 17 00:00:00 2001
From: js <js-gajim@webkeks.org>
Date: Sat, 13 Dec 2008 10:42:01 +0000
Subject: [PATCH] Merge r10825 from osx_newbuildsys branch, as this might be
 useful on X11 and win32 as well.

---
 src/message_window.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/message_window.py b/src/message_window.py
index 9a3c31fa23..a37f817f11 100644
--- a/src/message_window.py
+++ b/src/message_window.py
@@ -752,7 +752,11 @@ class MessageWindow(object):
 			elif event.keyval == gtk.keysyms.Page_Up:
 				self.move_to_next_unread_tab(False)
 				return True
-		elif event.keyval == gtk.keysyms.Control_L:
+		if event.keyval in (gtk.keysyms.Shift_L, gtk.keysyms.Shift_R,
+		gtk.keysyms.Control_L, gtk.keysyms.Control_R, gtk.keysyms.Caps_Lock,
+		gtk.keysyms.Shift_Lock, gtk.keysyms.Meta_L, gtk.keysyms.Meta_R,
+		gtk.keysyms.Alt_L, gtk.keysyms.Alt_R, gtk.keysyms.Super_L,
+		gtk.keysyms.Super_R, gtk.keysyms.Hyper_L, gtk.keysyms.Hyper_R):
 			return True
 
 		if isinstance(control, ChatControlBase):
-- 
GitLab