ctrl+Insert copy text too. Fixes #4580
This commit is contained in:
parent
23905492f5
commit
d820977e16
|
@ -429,9 +429,9 @@ class ChatControlBase(MessageControl):
|
||||||
def _conv_textview_key_press_event(self, widget, event):
|
def _conv_textview_key_press_event(self, widget, event):
|
||||||
if gtk.gtk_version < (2, 12, 0):
|
if gtk.gtk_version < (2, 12, 0):
|
||||||
return
|
return
|
||||||
if event.state & gtk.gdk.CONTROL_MASK and event.keyval == gtk.keysyms.c \
|
if (event.state & gtk.gdk.CONTROL_MASK and event.keyval in (gtk.keysyms.c,
|
||||||
or event.state & gtk.gdk.SHIFT_MASK and event.keyval in (
|
gtk.keysyms.Insert)) or (event.state & gtk.gdk.SHIFT_MASK and \
|
||||||
gtk.keysyms.Page_Down, gtk.keysyms.Page_Up):
|
event.keyval in (gtk.keysyms.Page_Down, gtk.keysyms.Page_Up)):
|
||||||
return False
|
return False
|
||||||
self.parent_win.notebook.emit('key_press_event', event)
|
self.parent_win.notebook.emit('key_press_event', event)
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in New Issue