def keypress(self, size, key):
    result = urwid.Edit.keypress(self, size, key)
    if (result is None):
        mod_list[:] = build_filtered_mod_list(self.get_edit_text())
    return result
def keypress(self, size, key):
    result = urwid.Edit.keypress(self, size, key)
    if (result is None):
        mod_list[:] = build_filtered_mod_list(self.get_edit_text())
    return result