Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
mzivic7 committed Mar 8, 2025
1 parent 49db04e commit 55104da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions autocorrect.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def load_custom(custom):
ui = evdev.UInput.from_device(dev, name="virtual-keyboard-device")
for event in dev.read_loop():
# release
if event.type_word == ecodes.EV_KEY and event.value == 0:
if event.type == ecodes.EV_KEY and event.value == 0:
keybind_past = [None] * len(toggle_key)
if enable:
if skip:
Expand Down Expand Up @@ -254,7 +254,7 @@ def load_custom(custom):
skip = False

# press
elif event.type_word == ecodes.EV_KEY and event.value == 1:
elif event.type == ecodes.EV_KEY and event.value == 1:
keybind_past.append(event.code)
keybind_past.pop(0)

Expand Down Expand Up @@ -286,7 +286,7 @@ def load_custom(custom):
notify_send("Autocorrect", f'Word "{word}" added to blacklist')

if any(x in mod_keys for x in keybind_past[:-1]):
# key is not type_wordd
# key is not typed
skip = True

ui.close()

0 comments on commit 55104da

Please sign in to comment.