spyder-ide / spyder

Official repository for Spyder - The Scientific Python Development Environment
https://www.spyder-ide.org
MIT License
8.27k stars 1.61k forks source link

spyder accessiblity for visualy impaired user with windows magnification tool - lens does follow-up the cursor or the mousse #21620

Open FrancoisLB opened 9 months ago

FrancoisLB commented 9 months ago

Issue Report Checklist

Problem Description

once spyder is opened in anaconda/spyder, the windows magnification tool is not able to follow-up the focus when moving the caret of the mousse in the opened python code in the editor panl.

What steps reproduce the problem?

eacht time a python code is opened in the spyder editor

  1. open a python code
  2. clic in the editor
  3. move the text cursor when the magification tool is active. the lens does not fooow-up the cursor

What is the expected output? What do you see instead?

in the edition panel, the magnification tool of windows is supposed to follow-up the text cursor or the mousse.

Paste Traceback/Error Below (if applicable)

not applicable 

PASTE TRACEBACK HERE

Versions

=> spyder integrated to Anaconda Spyder 2023 -09

Dependencies

PASTE DEPENDENCIES HERE
ccordoba12 commented 9 months ago

Hey @FrancoisLB, thanks for reporting. We'll try to take a look at this issue in Spyder 6, to be released next year.

@dalthviz, are you able reproduce this problem?

dalthviz commented 9 months ago

I think I was able to reproduce this. From a quick check, seems like positioning the cursor over a line in the Editor which is being displayed at the screen bottom makes the focus jump to top of the Editor 🤔 Also if you activate the read functionality seems like the focus goes to the top of the file:

image

In the screenshot above, you can see the reader cursor not fully following the actual Editor cursor position (it follows the horizontal position only while showing some sort of vertical offset?

Also, just in case checked with the IPython Console and seems like there the magnification tool reader works correctly:

image

FrancoisLB commented 9 months ago

Hello,

i do confirm your diagnostic. that's exactly the observed behavior.

i observed this situation in spyder since about 1 to 2 years.

in the edit panel, this anomaly is also visible with a screen reader such as NVDA (Non Visual Desktop Access). NVDA is a free and open source tool developped by NV Access (the Australian Fondation).

when the text cursor is mouved in the code by pressing up and down arrow keys, NVDA does not annonce the text correctly. it's probabily due to an anomaly with the focus management.

many thanks for your help.

best regards

François

dalthviz commented 9 months ago

Thank you for the info @FrancoisLB ! We will try to see if we can fix this in a future Spyder release so that's why we will keep the issue open :+1: