OSDN Git Service

IME support: allow composition updates to dismiss the candidate list and speak if...
authorMichael Curran <mick@kulgan.net>
Mon, 8 Oct 2012 06:19:56 +0000 (16:19 +1000)
committerMichael Curran <mick@kulgan.net>
Mon, 8 Oct 2012 06:19:56 +0000 (16:19 +1000)
source/NVDAHelper.py

index 794c725..a2d5f4a 100755 (executable)
@@ -144,8 +144,8 @@ def handleInputCompositionStart(compositionString,selectionStart,selectionEnd,is
        from NVDAObjects.behaviors import CandidateItem\r
        focus=api.getFocusObject()\r
        #IME keeps updating input composition while the candidate list is open\r
-       #Therefore ignore composition updates in this situation.\r
-       if isinstance(focus,CandidateItem):\r
+       #Therefore ignore composition updates if candidate selections are configured for speaking.  \r
+       if config.conf["inputComposition"]["announceSelectedCandidate"] and isinstance(focus,CandidateItem):\r
                return 0\r
        if not isinstance(focus,InputComposition):\r
                parent=api.getDesktopObject().objectWithFocus()\r