README fix for keys with labels.

Couldn't get the README example with key labels to work. It appears
that you need to use keytext() as a child of the key. Updated example
produces output matching the screenshot.
This commit is contained in:
Josh Carter 2018-07-27 19:23:42 -06:00
parent 914f1d7e05
commit c613de503f
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ If you wanted to generate some 2u stabilized keycaps for an Ergodox for instance
``` ```
legends = ["Enter", "Escape", "Tab", "Shift"]; legends = ["Enter", "Escape", "Tab", "Shift"];
for(y=[0:3]) { for(y=[0:3]) {
translate_u(0,y) 2u() dsa_row() stabilized() cherry() key(legends[y], inset=true); translate_u(0,y) 2u() dsa_row() stabilized() cherry() key(inset=true) { keytext(legends[y], [0,0], 6); }
} }
``` ```