Fix bindings.key_mappings
This commit is contained in:
parent
0afaf2ce89
commit
f15e2285ba
@ -147,14 +147,9 @@ class BaseKeyParser(QObject):
|
|||||||
sequence = self._sequence.append_event(e)
|
sequence = self._sequence.append_event(e)
|
||||||
match, binding = self._match_key(sequence)
|
match, binding = self._match_key(sequence)
|
||||||
if match == QKeySequence.NoMatch:
|
if match == QKeySequence.NoMatch:
|
||||||
mappings = config.val.bindings.key_mappings
|
mapped = config.val.bindings.key_mappings.get(sequence, None)
|
||||||
mapped = mappings.get(txt, None)
|
|
||||||
if mapped is not None:
|
if mapped is not None:
|
||||||
# FIXME
|
match, binding = self._match_key(mapped)
|
||||||
raise Exception
|
|
||||||
txt = mapped
|
|
||||||
sequence = self._sequence.append_event(e)
|
|
||||||
match, binding = self._match_key(sequence)
|
|
||||||
|
|
||||||
self._sequence = self._sequence.append_event(e)
|
self._sequence = self._sequence.append_event(e)
|
||||||
if match == QKeySequence.ExactMatch:
|
if match == QKeySequence.ExactMatch:
|
||||||
|
Loading…
Reference in New Issue
Block a user