kmk.consts: rename UnicodeModes => UnicodeMode

This brings this naming into consistency with both fellow consts in the
same file (ex. LeaderMode is singular) as well as the variables in which
the consts are usually used (usually a `Firmware.unicode_mode` attribute
in a keymap).
This commit is contained in:
Josh Klar
2018-12-04 17:03:13 -08:00
parent 84a3fa8a04
commit d6a0538009
9 changed files with 25 additions and 25 deletions

View File

@@ -5,7 +5,7 @@ except ImportError:
# MicroPython, it doesn't exist
from ucollections import namedtuple
from kmk.consts import UnicodeModes
from kmk.consts import UnicodeMode
from kmk.types import AttrDict
FIRST_KMK_INTERNAL_KEYCODE = 1000
@@ -548,12 +548,12 @@ class KMK(KeycodeCategory):
'''
return UnicodeModeKeycode.from_mode_const(mode)
KC_UC_MODE_NOOP = KC_UC_DISABLE = UnicodeModeKeycode.from_mode_const(UnicodeModes.NOOP)
KC_UC_MODE_LINUX = KC_UC_MODE_IBUS = UnicodeModeKeycode.from_mode_const(UnicodeModes.IBUS)
KC_UC_MODE_NOOP = KC_UC_DISABLE = UnicodeModeKeycode.from_mode_const(UnicodeMode.NOOP)
KC_UC_MODE_LINUX = KC_UC_MODE_IBUS = UnicodeModeKeycode.from_mode_const(UnicodeMode.IBUS)
KC_UC_MODE_MACOS = KC_UC_MODE_OSX = KC_UC_MODE_RALT = UnicodeModeKeycode.from_mode_const(
UnicodeModes.RALT,
UnicodeMode.RALT,
)
KC_UC_MODE_WINC = UnicodeModeKeycode.from_mode_const(UnicodeModes.WINC)
KC_UC_MODE_WINC = UnicodeModeKeycode.from_mode_const(UnicodeMode.WINC)
@staticmethod
def KC_MACRO_SLEEP_MS(ms):