From 37aeeac10aa63e75ef5e182da414f073a83018a6 Mon Sep 17 00:00:00 2001 From: Kyle Brown Date: Thu, 11 Oct 2018 19:14:23 -0700 Subject: [PATCH] Should have been caps as these are const --- kmk/consts.py | 8 ++++---- kmk/internal_state.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/kmk/consts.py b/kmk/consts.py index 080379a..bcc5dea 100644 --- a/kmk/consts.py +++ b/kmk/consts.py @@ -150,7 +150,7 @@ class UnicodeModes: class LeaderMode: - Default = 0 - Default_Active = 1 - Enter = 2 - Enter_Active = 3 + DEFAULT = 0 + DEFAULT_ACTIVE = 1 + ENTER = 2 + ENTER_ACTIVE = 3 diff --git a/kmk/internal_state.py b/kmk/internal_state.py index 5f7f90f..ebcd852 100644 --- a/kmk/internal_state.py +++ b/kmk/internal_state.py @@ -90,7 +90,7 @@ class InternalState: import kmk_keyboard_user self.unicode_mode = getattr(kmk_keyboard_user, 'unicode_mode', UnicodeModes.NOOP) self.tap_time = getattr(kmk_keyboard_user, 'tap_time', 300) - self.leader_mode = getattr(kmk_keyboard_user, 'leader_mode', LeaderMode.Enter) + self.leader_mode = getattr(kmk_keyboard_user, 'leader_mode', LeaderMode.ENTER) self.LEADER_DICTIONARY = getattr(kmk_keyboard_user, 'LEADER_DICTIONARY', {}) self.preserve_intermediate_states = preserve_intermediate_states