OSDN Git Service

Only automatically report all candidates in a candidate list if the candidate list...
authorMichael Curran <mick@kulgan.net>
Mon, 17 Sep 2012 14:22:23 +0000 (00:22 +1000)
committerMichael Curran <mick@kulgan.net>
Mon, 17 Sep 2012 14:22:23 +0000 (00:22 +1000)
source/NVDAObjects/behaviors.py

index c7593b1..f4f4816 100755 (executable)
@@ -381,7 +381,8 @@ class CandidateItem(NVDAObject):
                while obj and isinstance(obj,CandidateItem) and controlTypes.STATE_INVISIBLE not in obj.states:\r
                        textList.append(obj.name)\r
                        obj=obj.next\r
-               self.visibleCandidateItemsText=", ".join(textList)\r
+               if len(textList)<=1: return None\r
+               self.visibleCandidateItemsText=(u", ".join(textList))+u", "\r
                return self.visibleCandidateItemsText\r
 \r
 class RowWithFakeNavigation(NVDAObject):\r