Commit 40a25d07 authored by Yann Leboulanger's avatar Yann Leboulanger

don't traceback when strange thing happen with keymap, just make ctrl+c not work. see #5636

parent dd38dcee
......@@ -95,8 +95,14 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
"""
keymap = gtk.gdk.keymap_get_default()
keycode_c = keymap.get_entries_for_keyval(gtk.keysyms.c)[0][0]
keycode_ins = keymap.get_entries_for_keyval(gtk.keysyms.Insert)[0][0]
try:
keycode_c = keymap.get_entries_for_keyval(gtk.keysyms.c)[0][0]
except TypeError:
keycode_c = 54
try:
keycode_ins = keymap.get_entries_for_keyval(gtk.keysyms.Insert)[0][0]
except TypeError:
keycode_ins = 118
def make_href(self, match):
url_color = gajim.config.get('urlmsgcolor')
url = match.group()
......
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