docs(sequences): clarity in keymap arrays to not look like splats (resolves #576)

This commit is contained in:
Josh Klar
2022-09-07 19:00:35 -07:00
committed by Kyle Brown
parent 87955f7b5f
commit 473d54a83f
2 changed files with 10 additions and 10 deletions

View File

@@ -19,7 +19,7 @@ from kmk.handlers.sequences import send_string
WOW = send_string("Wow, KMK is awesome!")
keyboard.keymap = [...WOW,...]
keyboard.keymap = [<other keycodes>, WOW, <other keycodes>]
```
## Unicode
@@ -54,7 +54,7 @@ from kmk.handlers.sequences import unicode_string_sequence
FLIP = unicode_string_sequence('(ノಠ痊ಠ)ノ彡┻━┻')
keyboard.keymap = [...FLIP,...]
keyboard.keymap = [<other keycodes>, FLIP, <other keycodes>]
```
Se, em vez disso, você manter uma tabela de busca de suas sequências (talvez
@@ -69,7 +69,7 @@ emoticons = cuss({
'HAND_WAVE': r'👋',
})
keymap = [...emoticons.BEER, emoticons.HAND_WAVE...]
keymap = [<other keycodes>, emoticons.BEER, emoticons.HAND_WAVE, <other keycodes>]
```
> Um observador notará que a notação-de-ponto (*dot notation*) é suportada aqui,
@@ -89,5 +89,5 @@ TABLE_FLIP = unicode_codepoint_sequence([
"30ce", "5f61", "253b", "2501", "253b",
])
keyboard.keymap = [...TABLE_FLIP,...]
keyboard.keymap = [<other keycodes>, TABLE_FLIP, <other keycodes>]
```