From b7778034737874200229d5539fc55f683ffb5959 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 12 Oct 2013 13:32:21 +0530 Subject: [PATCH] Make shortcuts config file a variable --- src/calibre/gui2/keyboard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/keyboard.py b/src/calibre/gui2/keyboard.py index 362a074304..e753555ace 100644 --- a/src/calibre/gui2/keyboard.py +++ b/src/calibre/gui2/keyboard.py @@ -71,10 +71,10 @@ def finalize(shortcuts, custom_keys_map={}): # {{{ class Manager(QObject): # {{{ - def __init__(self, parent=None): + def __init__(self, parent=None, config_name='shortcuts/main'): QObject.__init__(self, parent) - self.config = JSONConfig('shortcuts/main') + self.config = JSONConfig(config_name) self.shortcuts = OrderedDict() self.keys_map = {} self.groups = {}