From 2b85392d0a93726eef50ba50a699ab0e0ed38f36 Mon Sep 17 00:00:00 2001 From: Simon Arbuckle Date: Fri, 29 Apr 2016 17:14:27 +0200 Subject: [PATCH] feat: Adds waiSuggestionsStatusGetter to the SelectBox sample allowing JAWS to announce the number of suggestions in the list --- samples/widgets/selectbox/SampleUsage.tpl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/samples/widgets/selectbox/SampleUsage.tpl b/samples/widgets/selectbox/SampleUsage.tpl index aa77992..fb67a5d 100644 --- a/samples/widgets/selectbox/SampleUsage.tpl +++ b/samples/widgets/selectbox/SampleUsage.tpl @@ -13,6 +13,13 @@ to : "country", inside : data.widgets } + }, + waiSuggestionsStatusGetter : function (number) { + if (number === 0) { + return "There is no suggestion."; + } else { + return (number == 1 ? "There is one suggestion" : "There are " + number + " suggestions") + ", use up and down arrow keys to navigate and enter to validate."; + } } }/}