fix crash on failing look-up
This commit is contained in:
parent
9d555209b8
commit
e71d1fcb6e
@ -257,10 +257,12 @@ class Combos(Module):
|
||||
|
||||
def send_key_buffer(self, keyboard):
|
||||
for (int_coord, key, is_pressed) in self._key_buffer:
|
||||
try:
|
||||
new_key = keyboard._coordkeys_pressed[int_coord]
|
||||
except KeyError:
|
||||
new_key = None
|
||||
new_key = None
|
||||
if not is_pressed:
|
||||
try:
|
||||
new_key = keyboard._coordkeys_pressed[int_coord]
|
||||
except KeyError:
|
||||
new_key = None
|
||||
if new_key is None:
|
||||
new_key = keyboard._find_key_in_map(int_coord)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user