File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,6 @@ def __init__(self, params):
3636 self ._down_keys = set ()
3737 self ._keyboard_capture = None
3838 # Number of key down events since the last recognized chord.
39- self ._last_stroke_key_down_count = 0
40- self ._stroke_key_down_count = 0
4139 self ._update_bindings ()
4240 self ._ignore = False
4341
@@ -94,13 +92,11 @@ def set_suppression(self, enabled):
9492 self ._suppress ()
9593
9694 def suppress_last_stroke (self , send_backspaces ):
97- send_backspaces (self ._last_stroke_key_down_count )
98- self ._last_stroke_key_down_count = 0
95+ pass
9996
10097 def _key_down (self , key ):
10198 """Called when a key is pressed."""
10299 assert key is not None
103- self ._stroke_key_down_count += 1
104100 if key not in self ._down_keys :
105101 self ._down_keys .add (key )
106102 self ._ignore = False
@@ -111,13 +107,11 @@ def _key_up(self, key):
111107 if self ._ignore :
112108 self ._down_keys .discard (key )
113109 return
114- self ._last_stroke_key_down_count = self ._stroke_key_down_count
115110 steno_keys = {self ._bindings .get (k ) for k in self ._down_keys }
116111 steno_keys -= {None }
117112 if steno_keys :
118113 self ._notify (steno_keys )
119114 self ._down_keys .discard (key )
120- self ._stroke_key_down_count = 0
121115 self ._ignore = True
122116
123117 @classmethod
You can’t perform that action at this time.
0 commit comments