commit/placeMarkers: norrumar: Perform review.handleCaretMove(info) when moving to bookmarks

  • From: commits-noreply@xxxxxxxxxxxxx
  • To: commits+int+220+6085746285340533186@xxxxxxxxxxxxxxxxxxxxx, nvda-addons-commits@xxxxxxxxxxxxx
  • Date: Tue, 26 Feb 2019 17:19:40 +0000 (UTC)

1 new commit in placeMarkers:

https://bitbucket.org/nvdaaddonteam/placemarkers/commits/798beeb9e1d7/
Changeset:   798beeb9e1d7
Branch:      stable
User:        norrumar
Date:        2019-02-26 16:59:23+00:00
Summary:     Perform review.handleCaretMove(info) when moving to bookmarks

Fixes issue #15

Affected #:  2 files

diff --git a/addon/globalPlugins/placeMarkers/__init__.py 
b/addon/globalPlugins/placeMarkers/__init__.py
index 96b8c37..166857c 100644
--- a/addon/globalPlugins/placeMarkers/__init__.py
+++ b/addon/globalPlugins/placeMarkers/__init__.py
@@ -20,6 +20,7 @@ import config
 import globalVars
 import languageHandler
 import textInfos
+import review
 from textInfos.offsets import Offsets
 from cursorManager import CursorManager
 from browseMode import BrowseModeDocumentTreeInterceptor
@@ -124,6 +125,7 @@ def moveToBookmark(position):
                bookmark = Offsets(position, position)
                info = obj.makeTextInfo(bookmark)
                info.updateSelection()
+               review.handleCaretMove(info)
                speech.cancelSpeech()
                info.move(textInfos.UNIT_LINE,1,endPoint="end")
                speech.speakTextInfo(info,reason=controlTypes.REASON_CARET)
@@ -823,6 +825,7 @@ class GlobalPlugin(globalPluginHandler.GlobalPlugin):
                if nextPos is not None:
                        info = obj.makeTextInfo(Offsets(nextPos, nextPos))
                        info.updateSelection()
+                       review.handleCaretMove(info)
                        if willSayAllResume(gesture):
                                info.move(textInfos.UNIT_LINE,1,endPoint="end")
                                
#speech.speakTextInfo(info,reason=controlTypes.REASON_CARET)
@@ -868,6 +871,7 @@ class GlobalPlugin(globalPluginHandler.GlobalPlugin):
                if prevPos is not None:
                        info = obj.makeTextInfo(Offsets(prevPos, prevPos))
                        info.updateSelection()
+                       review.handleCaretMove(info)
                        if willSayAllResume(gesture):
                                info.move(textInfos.UNIT_LINE,1,endPoint="end")
                                
#speech.speakTextInfo(info,reason=controlTypes.REASON_CARET)

diff --git a/buildVars.py b/buildVars.py
index 2097b30..7b47271 100755
--- a/buildVars.py
+++ b/buildVars.py
@@ -19,7 +19,7 @@ addon_info = {
        # Translators: Long description to be shown for this add-on on add-on 
information from add-ons manager
        "addon_description" : _("Add-on for setting place markers on specific 
virtual documents"),
        # version
-       "addon_version" : "12.3",
+       "addon_version" : "12.4",
        # Author(s)
        "addon_author" : u"Noelia <nrm1977@xxxxxxxxx>, Chris 
<llajta2012@xxxxxxxxx>",
        # URL for the add-on documentation support

Repository URL: https://bitbucket.org/nvdaaddonteam/placemarkers/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.

Other related posts:

  • » commit/placeMarkers: norrumar: Perform review.handleCaretMove(info) when moving to bookmarks - commits-noreply