examples: fix keys (mathjs array zero-indexed)

This commit is contained in:
jean-emmanuel 2018-01-11 14:35:53 +01:00
parent b96bf4f6f8
commit ae74946493

View file

@ -122,7 +122,7 @@
"t"
],
"widgetId": "xy_1",
"keydown": "x = key == \"t\" ? 0.1 : -0.1;\nvalue[1] + x\nvalue[2] + x\n# value + 0.1 works too",
"keydown": "x = key == \"t\" ? 0.1 : -0.1;\nvalue[0] + x\nvalue[1] + x\n# value + 0.1 works too",
"keyup": "",
"repeat": false
}