WangFeng Huang
WangFeng Huang
Continuing from https://github.com/nvaccess/nvda/pull/18323#issuecomment-3500225921 I just remembered that you could also try calling the `updateContextRect(context=Context.BROWSEMODE, rect=mathRect)` method of the `NVDAHighlighter` instance when updating the position to directly update the browse mode...
@NSoiffer ```python import locationHelper import vision from vision.constants import Context def handleMathMove(rect: locationHelper.RectLTRB): from visionEnhancementProviders.NVDAHighlighter import NVDAHighlighter nvdaHighlighterId = NVDAHighlighter.getSettings().getId() nvdaHighlighterInfo = vision.handler.getProviderInfo(nvdaHighlighterId) highlighter = vision.handler.getProviderInstance(nvdaHighlighterInfo) try: highlighter.updateContextRect(context=Context.BROWSEMODE, rect=rect) except...