From 07130835a7cc1e22aaf0f164213ff701bef05cd6 Mon Sep 17 00:00:00 2001 From: Jono Wenger <jono@elixxir.io> Date: Mon, 5 Apr 2021 16:20:28 -0700 Subject: [PATCH] Make button reachable via tab key --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index 92701f9..4e422ed 100644 --- a/main.go +++ b/main.go @@ -128,6 +128,7 @@ func printForm(div *gowd.Element) { // add a button btn := bootstrap.NewButton(bootstrap.ButtonPrimary, "Send over xx") btn.SetAttribute("style", "background:#037281;background-color:#037281") + btn.SetAttribute("tabindex", "0") rtnDiv := bootstrap.NewElement("div", "well") body.AddElement(rtnDiv) btnEvent := func(sender *gowd.Element, event *gowd.EventElement) { -- GitLab