From d63ff81d39a7a46565c431209daa6b5e1f6ad3b1 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Thu, 11 Jan 2018 14:35:53 +0100 Subject: [PATCH] examples: fix keys (mathjs array zero-indexed) --- app/examples/keys.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/examples/keys.json b/app/examples/keys.json index 8a1d51aa..977a7f4c 100644 --- a/app/examples/keys.json +++ b/app/examples/keys.json @@ -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 }