Programmatically setting caret position in Scintilla controls causes text to be selected #746

Closed
nvaccessAuto opened this Issue Jul 5, 2010 · 2 comments

2 participants

@nvaccessAuto

Reported by jteh on 2010-07-05 01:12
Str:

  1. Open a document with at least 2 lines of text in Notepad++.
  2. Move to the top of the document.
  3. Activate NVDA say all (NVDA+downArrow).
  4. Stop say all by pressing control when it reaches the second line.
  5. Make NVDA report the selection (NVDA+shift+upArrow).
  6. Expected: There should be no selection.
  7. Actual: The first line is selected.

This is probably also why spurious selection and unselection is reported during say all. Selection wasn't reported automatically for Scintilla controls until 78daa96, but this bug would have existed before then and needs to be fixed.

@nvaccessAuto

Comment 1 by jteh on 2010-07-15 23:05
We're using the wrong messages. In Scintilla, selection consists of two parts: the anchor and the current position. We're using SCI_SETCURRENTPOS; we should be using SCI_GOTOPOS.

@nvaccessAuto

Comment 2 by jteh on 2010-07-15 23:53
Fixed in 532764d.
Changes:
State: closed

@nvaccessAuto nvaccessAuto added the bug label Nov 10, 2015
@jcsteh jcsteh was assigned by nvaccessAuto Nov 10, 2015
@nvaccessAuto nvaccessAuto added this to the 2010.2 milestone Nov 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment