Make shortcuts config file a variable

This commit is contained in:
Kovid Goyal 2013-10-12 13:32:21 +05:30
parent 224f03e1fd
commit b777803473

View File

@ -71,10 +71,10 @@ def finalize(shortcuts, custom_keys_map={}): # {{{
class Manager(QObject): # {{{ class Manager(QObject): # {{{
def __init__(self, parent=None): def __init__(self, parent=None, config_name='shortcuts/main'):
QObject.__init__(self, parent) QObject.__init__(self, parent)
self.config = JSONConfig('shortcuts/main') self.config = JSONConfig(config_name)
self.shortcuts = OrderedDict() self.shortcuts = OrderedDict()
self.keys_map = {} self.keys_map = {}
self.groups = {} self.groups = {}