'Constructor.
Args:
mode: The mode this keyparser is for.
parent: Qt parent.
warn: Whether to warn if an ignored key was bound.'

def __init__(self, win_id, mode, parent=None, warn=True):

    super().__init__(win_id, parent, supports_chains=False)
    self._warn_on_keychains = warn
    self.read_config(mode)
    self._mode = mode
