Skip to content

Commit 2d728e9

Browse files
committed
reset
1 parent 35e4786 commit 2d728e9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

inputremapper/injection/mapping_handlers/combination_handler.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,11 @@ class CombinationHandler(MappingHandler):
4242

4343
# map of InputEvent.input_match_hash -> bool , keep track of the combination state
4444
_pressed_keys: Dict[Hashable, bool]
45-
4645
# the last update we sent to a sub-handler. If this is true, the output key is
4746
# still being held down.
4847
_output_active: bool
4948
_sub_handler: InputEventHandler
5049
_handled_input_hashes: list[Hashable]
51-
5250
_requires_a_release: Dict[Tuple[int, int], bool]
5351

5452
def __init__(
@@ -181,6 +179,7 @@ def reset(self) -> None:
181179
self._sub_handler.reset()
182180
for key in self._pressed_keys:
183181
self._pressed_keys[key] = False
182+
self._requires_a_release = {}
184183
self._output_active = False
185184

186185
def is_activated(self) -> bool:

0 commit comments

Comments
 (0)