'Update search letters with text input in search box.'

def update_search_letters(self, text):

    self.letters = text
    names = [shortcut.name for shortcut in self.shortcuts]
    results = get_search_scores(text, names, template='<b>{0}</b>')
    (self.normal_text, self.rich_text, self.scores) = zip(*results)
    self.reset()
