Skip to content
Snippets Groups Projects
Commit 3c98eca1 authored by David Huss's avatar David Huss :speech_balloon:
Browse files

Fix logic error

parent bb62bb55
No related branches found
No related tags found
No related merge requests found
......@@ -385,7 +385,7 @@ def read_key_input(input_queue, config, logger):
joined_string = "".join(keybuffer)
# Don't add the string to the queue if is the same as before to avoid duplicates
if last_string is not None and joined_string != last_string:
if last_string is None or joined_string != last_string:
input_queue.put(joined_string)
last_string = joined_string
keybuffer = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment