Support a massively-enhanced SEND_STRING equivalent

This commit is contained in:
Josh Klar
2018-09-30 21:14:30 -07:00
parent 96b5c4ee03
commit 2c05efa805
4 changed files with 62 additions and 53 deletions

View File

@@ -2,7 +2,7 @@ import machine
from kmk.common.consts import DiodeOrientation, UnicodeModes
from kmk.common.keycodes import KC
from kmk.common.macros.simple import simple_key_sequence
from kmk.common.macros.simple import send_string, simple_key_sequence
from kmk.common.macros.unicode import unicode_sequence
from kmk.entrypoints.handwire.pyboard import main
@@ -13,7 +13,7 @@ rows = (p.X1, p.X2, p.X3)
diode_orientation = DiodeOrientation.COLUMNS
unicode_mode = UnicodeModes.LINUX
MACRO_TEST_STRING = simple_key_sequence([
MACRO_TEST_SIMPLE = simple_key_sequence([
KC.LSHIFT(KC.H),
KC.E,
KC.L,
@@ -28,6 +28,8 @@ MACRO_TEST_STRING = simple_key_sequence([
KC.EXCLAIM,
])
MACRO_TEST_STRING = send_string("Hello! from, uhhhh, send_string | and some other WEIRD STUFF` \\ like this' \"\t[]")
ANGRY_TABLE_FLIP = unicode_sequence([
"28",
"30ce",
@@ -55,7 +57,7 @@ keymap = [
],
[
[KC.VOLU, KC.MUTE, ANGRY_TABLE_FLIP],
[KC.TRNS, KC.PIPE, KC.MEDIA_PLAY_PAUSE],
[KC.TRNS, KC.PIPE, MACRO_TEST_SIMPLE],
[KC.VOLD, KC.P, MACRO_TEST_STRING],
],
[