Author: js Date: 2008-12-10 21:28:58 +0100 (Wed, 10 Dec 2008) New Revision: 10825
Modified: branches/osx_newbuildsys/src/message_window.py Log: Don't change focus on modifier keys.
This fixes a race condition on OS X when trying to use Ctrl-C in the conversation textview. It would always switch the focus to the message textview when pressing a modifier key, and thus it was not possible to copy using Ctrl-C (or, with my Gtk patch, Apple-C).
Modified: branches/osx_newbuildsys/src/message_window.py =================================================================== --- branches/osx_newbuildsys/src/message_window.py 2008-12-10 08:47:16 UTC (rev 10824) +++ branches/osx_newbuildsys/src/message_window.py 2008-12-10 20:28:58 UTC (rev 10825) @@ -752,7 +752,11 @@ 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):