Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
nvaccessAuto opened this issue Jul 5, 2010 · 2 comments
Assignees
Labels
Milestone

Comments

@nvaccessAuto
Copy link

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
Copy link
Author

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants