Commit af312830 authored by Philipp Hörist's avatar Philipp Hörist

Remove ConversationTextView key-press-event handler

The underlying HtmlTextView is not selectable anymore, so we dont need
to send events to the notebook
parent dc25497c
......@@ -58,7 +58,6 @@
from gajim.gtk.util import at_the_end
from gajim.gtk.util import get_show_in_roster
from gajim.gtk.util import get_show_in_systray
from gajim.gtk.util import get_primary_accel_mod
from gajim.gtk.util import get_hardware_key_codes
from gajim.gtk.emoji_chooser import emoji_chooser
......@@ -255,9 +254,6 @@ def __init__(self, type_id, parent_win, widget_name, contact, acct,
self.conv_textview = ConversationTextview(self.account)
id_ = self.conv_textview.connect('quote', self.on_quote)
self.handlers[id_] =
id_ =
'key_press_event', self._conv_textview_key_press_event)
self.handlers[id_] =
# FIXME: DND on non editable TextView, find a better way
self.drag_entered = False
......@@ -608,19 +604,6 @@ def _on_banner_eventbox_button_press_event(self, widget, event):
if event.button == 3: # right click
def _conv_textview_key_press_event(self, _widget, event):
if (event.get_state() & get_primary_accel_mod() and
event.hardware_keycode in self.keycodes_c):
if (event.get_state() & Gdk.ModifierType.SHIFT_MASK and
event.keyval in (Gdk.KEY_Page_Down, Gdk.KEY_Page_Up)):
self._on_scroll(None, event.keyval)
return Gdk.EVENT_STOP
def _on_message_textview_paste_event(self, texview):
clipboard = Gtk.Clipboard.get(Gdk.SELECTION_CLIPBOARD)
image = clipboard.wait_for_image()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment