Handle multiple commands in KeyConfigParser.get_reverse_bindings_for
This commit is contained in:
parent
98e6ccf548
commit
39508d984e
@ -435,7 +435,9 @@ class KeyConfigParser(QObject):
|
||||
def get_reverse_bindings_for(self, section):
|
||||
"""Get a dict of commands to a list of bindings for the section."""
|
||||
cmd_to_keys = {}
|
||||
for key, cmd in self.get_bindings_for(section).items():
|
||||
for key, full_cmd in self.get_bindings_for(section).items():
|
||||
for cmd in full_cmd.split(';;'):
|
||||
cmd = cmd.strip()
|
||||
cmd_to_keys.setdefault(cmd, [])
|
||||
# put special bindings last
|
||||
if utils.is_special_key(key):
|
||||
|
Loading…
Reference in New Issue
Block a user