Everything necessary to get this to boot finally. Planck types!

This commit is contained in:
Josh Klar
2018-12-29 06:03:31 -08:00
parent 39a6465658
commit 57239e3163
9 changed files with 138 additions and 68 deletions

View File

@@ -1,5 +1,5 @@
from kmk.consts import UnicodeMode
from kmk.keycodes import ALL_KEYS, KC, Macro
from kmk.keycodes import KC, Macro
from kmk.macros.simple import simple_key_sequence
from kmk.types import AttrDict
from kmk.util import get_wide_ordinal
@@ -45,7 +45,7 @@ def generate_codepoint_keysym_seq(codepoint, expected_length=4):
seq = [KC.N0 for _ in range(max(len(codepoint), expected_length))]
for idx, codepoint_fragment in enumerate(reversed(codepoint)):
seq[-(idx + 1)] = ALL_KEYS.get(codepoint_fragment)
seq[-(idx + 1)] = KC.get(codepoint_fragment)
return seq