Skip to content

Commit

Permalink
Rename no_no_any_modifier_enabled to banned_modifier_active
Browse files Browse the repository at this point in the history
This should make it much clearer what the variable is responsible for.

Signed-off-by: Slendi <[email protected]>
  • Loading branch information
xslendix committed Jul 20, 2024
1 parent 33b8e0e commit 3912c62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nexus/Freqlog/Freqlog.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,18 +190,18 @@ def _log_and_reset_word(min_length: int = 2) -> None:
a for a in dir(vinput.KeyboardModifiers)
if not a.startswith('_') and type(getattr(vinput.KeyboardModifiers, a)).__name__ == "CField"
]
no_no_any_modifier_enabled = False
banned_modifier_active = False
for attr in attributes_mods:
should_check: bool = getattr(self.modifier_keys, attr)
if not should_check:
continue

if getattr(modifiers, attr):
no_no_any_modifier_enabled = True
banned_modifier_active = True
break

# Add new char to word and update word timing if no modifier keys are pressed
if isinstance(key, str) and key and not no_no_any_modifier_enabled:
if isinstance(key, str) and key and not banned_modifier_active:
# I think this is for chords that end in space
# If last key was disallowed and timing of this key is more than chord_char_threshold, log+reset
if (last_key_was_disallowed and word and word_end_time and
Expand Down

0 comments on commit 3912c62

Please sign in to comment.