'Check shortcuts for conflicts.'

def check_conflicts(self):

    conflicts = []
    for (index, shortcut) in enumerate(self.shortcuts):
        sequence = str(shortcut.key)
        if ((sequence == self.new_sequence) and ((shortcut.context == self.context) or (shortcut.context == '_') or (self.context == '_'))):
            conflicts.append(shortcut)
    return conflicts
