OSDN Git Service

Changed the behaviour of the review follows caret option, so that the review positio...
authorMichael Curran <mick@kulgan.net>
Mon, 22 Nov 2010 06:55:34 +0000 (16:55 +1000)
committerMichael Curran <mick@kulgan.net>
Mon, 22 Nov 2010 06:55:34 +0000 (16:55 +1000)
commitabde7519d02c2e76753d79cc1fed3259037f8e87
treeb41de37e78b72cc28bddd850f93b6668f253001f
parent1bba6120a8cf150d0269a0ab6825ebc71fe03596
Changed the behaviour of the review follows caret option, so that  the review position will only move if the caret moves in the same object. Previously if the caret moved in any object, the review position would jump inside that object. Specific changes:
*NVDAObject.event_caret: only set the review position to the caret if the current navigator object is this object.
*VirtualBuffer._set_selection:  rather than unconditionally setting the review position to the new caret position, instead only do this if the current navigator object is the root of this virtualBuffer.
*TreeInterceptor._set_passthrough: if passthrough is turning on, and the focus is currently inside this treeInterceptor, and the review follows focus option is on, set the navigator object to the focus.
*TreeInterceptor._set_selection: if passthrough is turning off, and the navigator object is inside this treeInterceptor, and the review follows caret option is turned on,  set the navigator object to the root of this treeInterceptor.
source/NVDAObjects/__init__.py
source/editableText.py
source/treeInterceptorHandler.py
source/virtualBuffers/__init__.py