Fixed bug preventing control+shift+b key presses from working in styled text editor

svn: r15741
This commit is contained in:
Doug Blank 2010-08-15 20:20:39 +00:00
parent 5f7d9daaef
commit 00aaa7197a

View File

@ -242,7 +242,9 @@ class StyledTextEditor(gtk.TextView):
"""
for accel, accel_name in self.action_accels.iteritems():
key, mod = gtk.accelerator_parse(accel)
if (event.keyval == key) and (event.state & mod):
if (((event.keyval == key) or
(event.keyval + 32 == key)) and
bool((event.state & mod) == mod)):
action_name = accel_name
action = self.action_group.get_action(action_name)
action.activate()