FIX: Make poll options tabbable (#13159)

FIX: Make poll options tabbable (#13159)

diff --git a/plugins/poll/assets/javascripts/widgets/discourse-poll.js.es6 b/plugins/poll/assets/javascripts/widgets/discourse-poll.js.es6
index 08a0235..1a47c24 100644
--- a/plugins/poll/assets/javascripts/widgets/discourse-poll.js.es6
+++ b/plugins/poll/assets/javascripts/widgets/discourse-poll.js.es6
@@ -58,7 +58,7 @@ createWidget("discourse-poll-option", {
   tagName: "li",
 
   buildAttributes(attrs) {
-    return { "data-poll-option-id": attrs.option.id };
+    return { tabindex: 0, "data-poll-option-id": attrs.option.id };
   },
 
   html(attrs) {
@@ -83,6 +83,12 @@ createWidget("discourse-poll-option", {
       this.sendWidgetAction("toggleOption", this.attrs.option);
     }
   },
+
+  keyDown(e) {
+    if (e.keyCode === 13) {
+      this.click(e);
+    }
+  },
 });
 
 createWidget("discourse-poll-load-more", {

GitHub sha: 8e144848

This commit appears in #13159 which was approved by eviltrout. It was merged by nbianca.