-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Use contentEditable for our hidden accessibility textArea #97154
Comments
While that is true, I would say line numbers can be toggled, so I don't necessarily see that as an obstacle for this. If this allows for breakpoint, error and line number indication, I'd say go for at least giving it a test run. The performance implications are one to keep an eye on, though. |
NVDA's line number reading is not going to work in vscode, because vscode can only page n lines at a time to the hidden textarea used for accessibility. |
Unfortunetly I did not have time to look into this this milestone. In july I am on vacation, thus pushing this out to August. |
@isidorn since you brought this up in another issue, did you have time at all yet to look into this? |
@MarcoZehe yeah I found some time, however I hit some bigger issues with this approach. I believe none of them are unsolvable but they showed that this is a bigger effort. So we would use a
If somebody has ideas how to tackle these let me know. Especially the first two with selection. |
Does the contentEditable attribute not handle these automatically? |
@MarcoZehe Hopefully I explained this correctly, let me know if not and I can try again :) |
For contentEditable elements, the Selection API (https://developer.mozilla.org/en-US/docs/Web/API/Selection) can be used to retrieve and manipulate selection programmatically. It is more difficult to use than textarea, because Selection API manages selections on the whole page. Any element without |
@yume-chan that's a good idea, and if I am not mistaken I also tried with that, however I found that API to be much less powerful. |
Probably a not too smart question, but what is holding you back from implementing something accessible in the true editor? |
@LeonarddeR it's a good question. Because our true editor is a bunch of html divs, spans and what not. It is not only text, as there can be inline decorations and other details. it is not a I believe @alexdima the author of the editor considered this and he can probably explain in more detail if needed. |
Investigate into using
contenteditable
instead of a plaintextArea
for our hidden accessibility field.It migh have performance implications, but it would allow us to have richer accessibility content on each line. Including line number, breakpoints etc..
The text was updated successfully, but these errors were encountered: