diff --git a/terminatorlib/terminal_popup_menu.py b/terminatorlib/terminal_popup_menu.py index 34e6a3fe..581a9ae1 100644 --- a/terminatorlib/terminal_popup_menu.py +++ b/terminatorlib/terminal_popup_menu.py @@ -30,6 +30,8 @@ class TerminalPopupMenu(object): def get_menu_item_mask(self, maskstr): mask = 0 + if maskstr is None: + return mask maskstr = maskstr.lower() if maskstr.find(''.lower()) >= 0: mask = mask | Gdk.ModifierType.SHIFT_MASK