From 3912c6245f2c7f2c7074bb5460f3ec37399ec697 Mon Sep 17 00:00:00 2001 From: Slendi Date: Sat, 20 Jul 2024 22:27:40 +0300 Subject: [PATCH] Rename `no_no_any_modifier_enabled` to banned_modifier_active This should make it much clearer what the variable is responsible for. Signed-off-by: Slendi --- nexus/Freqlog/Freqlog.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nexus/Freqlog/Freqlog.py b/nexus/Freqlog/Freqlog.py index 26ac860..73f51be 100644 --- a/nexus/Freqlog/Freqlog.py +++ b/nexus/Freqlog/Freqlog.py @@ -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