From 3ada2293dbcb541ce92fc56a89d61a8fc0bf21d5 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 5 Feb 2010 07:21:12 +0100 Subject: [PATCH] revert unwanted changes in [428adcf83dc7] --- src/chat_control.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/chat_control.py b/src/chat_control.py index 7124de6d3..f4089906b 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -553,15 +553,10 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools): widget.modify_fg(gtk.STATE_NORMAL, fg_color) self.connect_style_event(widget, opts[0], opts[1]) - def _conv_textview_key_press_event(self, widget, event): - # translate any layout to latin_layout - keymap = gtk.gdk.keymap_get_default() - keycode, group, level = keymap.get_entries_for_keyval(event.keyval)[0] - keycodec, group, level = keymap.get_entries_for_keyval(gtk.keysyms.c)[0] - if (event.state & gtk.gdk.CONTROL_MASK and keyval in (keycodec, + if (event.state & gtk.gdk.CONTROL_MASK and event.keyval in (gtk.keysyms.c, gtk.keysyms.Insert)) or (event.state & gtk.gdk.SHIFT_MASK and \ - keyval in (gtk.keysyms.Page_Down, gtk.keysyms.Page_Up)): + event.keyval in (gtk.keysyms.Page_Down, gtk.keysyms.Page_Up)): return False self.parent_win.notebook.emit('key_press_event', event) return True