Commit 277e13bd authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Handle Exception when there is no KEY_Insert

This happens on MacOSX
parent 09c82c31
......@@ -75,6 +75,9 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
keycode_ins = keymap.get_entries_for_keyval(Gdk.KEY_Insert)[1][0].keycode
except TypeError:
keycode_ins = 118
except IndexError:
# There is no KEY_Insert (MacOS)
keycode_ins = None
def make_href(self, match):
url_color = gajim.config.get('urlmsgcolor')
......
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