

def __init__(self, name, keypress=None):
    if (keypress is None):
        keypress = (lambda _, editor, key: self.dispatch(editor, [key]))
    self.name = name
    self._keypress = keypress
    self._map = _Map()

dataset/ETHPy150Open Julian/PyVi/pyvi/mode.py Mode.__init__/original