diff --git a/rtv/__main__.py b/rtv/__main__.py index ee49b7d..ff470df 100644 --- a/rtv/__main__.py +++ b/rtv/__main__.py @@ -45,7 +45,10 @@ def main(): config = Config() config.update(**fargs) config.update(**args) - config.keymap.update(**bindings) + + # If key bindings are supplied in the config file, overwrite the defaults + if bindings: + config.keymap.set_bindings(bindings) # Copy the default config file and quit if config['copy_config']: diff --git a/rtv/objects.py b/rtv/objects.py index cda6979..93ec0e8 100644 --- a/rtv/objects.py +++ b/rtv/objects.py @@ -610,6 +610,7 @@ class KeyMap(object): """ def __init__(self, bindings): + self._keymap = None self.set_bindings(bindings) def set_bindings(self, bindings):