Andrew Boyson / web

Dependents:   oldheating gps motorhome heating

Revision:
90:9cc77a16b6c5
Parent:
86:f3c9beec4ee7
Child:
91:9a125082f53c
diff -r 615fb951df69 -r 9cc77a16b6c5 page/page.c
--- a/page/page.c	Thu Apr 11 09:45:36 2019 +0000
+++ b/page/page.c	Thu Apr 11 11:01:12 2019 +0000
@@ -170,7 +170,7 @@
 {
     HttpAddText("<div class='line'>\r\n");
     HttpAddF   ("  <div>%s</div>\r\n", label);
-    HttpAddF   ("  <div class='toggle' id='%s' dir='ltr' onclick='AjaxRequest(\"%s=1\")'>\r\n", id, name);
+    HttpAddF   ("  <div class='toggle' id='%s' tabindex='0' dir='ltr' onclick='AjaxRequest(\"%s=1\")' onkeydown='return event.keyCode != 13 || AjaxRequest(\"%s=1\")'>\r\n", id, name, name);
     HttpAddText("    <div class='slot'></div><div class='knob'></div>\r\n");
     HttpAddText("  </div>\r\n");
     HttpAddText("</div>\r\n");