Post-refactor bugfixes
This commit is contained in:
parent
40d7fc6f14
commit
5564e4365e
@ -249,12 +249,11 @@ class KeyParser(QObject):
|
||||
# normalize keystring
|
||||
keystr = self._normalize_keystr(key.strip('@'))
|
||||
logging.debug('registered mod key: {} -> {}'.format(keystr,
|
||||
cmd.value))
|
||||
self._modifier_bindings[keystr] = cmd.value
|
||||
cmd))
|
||||
self._modifier_bindings[keystr] = cmd
|
||||
else:
|
||||
logging.debug('registered key: {} -> {}'.format(key,
|
||||
cmd.value))
|
||||
self._bindings[key] = cmd.value
|
||||
logging.debug('registered key: {} -> {}'.format(key, cmd))
|
||||
self._bindings[key] = cmd
|
||||
|
||||
def handle(self, e):
|
||||
"""Handle a new keypress and call the respective handlers.
|
||||
|
@ -156,8 +156,8 @@ class NewConfig:
|
||||
"is entered."),
|
||||
|
||||
('zoomlevels',
|
||||
SettingValue(types.Int, "25,33,50,67,75,90,100,110,125,150,"
|
||||
"175,200,250,300,400,500"),
|
||||
SettingValue(types.IntList, "25,33,50,67,75,90,100,110,125,"
|
||||
"150,175,200,250,300,400,500"),
|
||||
"The available zoom levels, separated by commas."),
|
||||
|
||||
('defaultzoom',
|
||||
|
@ -45,7 +45,8 @@ class SettingValue:
|
||||
default_conf: Raw value to set, for the config.
|
||||
|
||||
"""
|
||||
self.typ = typ
|
||||
self.typ = typ()
|
||||
self.rawvalue = None
|
||||
self.default = default
|
||||
self.default_conf = default_conf
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user