-
-
Notifications
You must be signed in to change notification settings - Fork 651
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
Poedit reports text such as context or errors when focused #17166
base: master
Are you sure you want to change the base?
Conversation
If this is a regression in Poedit 3.5, it might be better to file an issue against Poedit. |
I am not totally sure how poedit was before 3.5. But I seem to record that these elements were not focusable at all. And I don't record tabbing around and hearing "pane", "pane" in previous versions of poedit. Do you know if having these static texts focusable was part of the accessibility requests that have been recently handled in poedit? Or hasn't it anything to do with it? In any case, I feel that having such information focused (and thus heard) during tab navigation is a plus, at least for context and warnings/errors. If I need to ask a change in poedit rather than handling in NVDA, I do not know precisely what to ask. And poedit's author probably would expect something quite precise so that the issue be actionable. |
I don't recall this either. May be more frequent Poedit users can chime in here? |
I had these panes focusable when tabbing for a very long time, actually it was one of the main things that annoyed me about switching to Poedit 3, so this PR is definitely quite useful. If anything should be re-reported to the Poedit developer, it should be the annoying issue with plural forms which doesn't allow tabbing/shift+tabbing once you are in the translation edit box, that's my other annoying issue with it. In any case, that's off topic for this PR, I mainly wanted to give feedback that the panes were there for me even before 3.5. |
Thanks @nidza07 for the feedback. So these panels are not a regression, at least not a recent one. Have you tried this PR? Re plurals, since poedit v 3.5 I can tab or shift+tab out of the translation edit field of plural forms; the issue was present until version 3.4.x. Could you double check? The only issue which remains with plural forms is vslavik/poedit#863 that I have just opened. |
I have just tried the build of this PR with the nvda.po file. I edited a string on purpose to not match punctuation, the first one "Alpha numeric input" If I try with a string containing a type of formatting, %s in particular, I hear "Python format" when tabbing past the list of translations, again better than the previous behaviour of just hearing "Panel". On the other hand, in the "userGuide.xliff" file the results are a bit different: Re: Plurals, thanks for this information. I was waiting a little on upgrading to Poedit 3.5 as I wasn't yet running a NVDA version with the latest PoEdit app module, but it is definitely fixed now which is great news. |
Thanks for your tests.
This hex number you hear is probably the context information coming from the xliff file. In the case of the User Guide, the context information is of no use for translators, but in the case of the GUI (nvda.po), the context information is something like "addonStore", "braille formatting symbol", etc.), which should help the translator to discriminate two same strings in different context. So in summary, we have just to ignore it for User Guide. |
Poedit 3.5 updated the wxWidgets library from 3.0 to 3.2 — that's probably the cause of the "pane" thing. There were no intentional changes in focus handling there. Replacing "pane" in Poedit with actual description should be easily doable. |
@vslavik are these items (warning/error, context) meant to be focusable? If it's a regression, do you plant to fix it soon? From screen reader users point of view, having these items focusable and part of the tab order during keyboard navigation allows them to learn about the displayed information (e.g. context, warning/error) while navigating with the keyboard. More generally, is this issue discussed or tracked on poedit side (if needed)? If yes, could you provide the link? |
There's an active button/hyperlink in it ("ignore"), but the line itself shouldn't be focusable and it is surprising.
That's the standard guidance: TAB navigation goes through interactive elements only. Changing that would wreak havoc on non-NVDA use of keyboard... If there's a way to make them navigable for screenreaders only, I'm happy to do it. I can also always hardcode their IDs.
I don't think this particular one is there. The list stuff is at vslavik/poedit#696 |
@CyrilleB79 - what is the status of this PR? is this blocked on something on Poedits side? |
# Conflicts: # user_docs/en/changes.md
@vslavik, currently in poedit, some non-interactive controls (panes) are focusable, and part of tab navigation. This is not desirable as written in #17166 (comment). |
@seanbudd, I'll finally switch this PR to ready. @vslavik probably plans to modify poedit's interface to make these fields not focusable. But there is no clear date for this change. Merging this PR will be a plus on current poedit version. And I do not expect the changes in this PR to have any effect if/when poedit static text fields become not focusable. |
The one instance of this that I am aware of (the QA labels) is fixed by vslavik/poedit@2a36c7c (in v3.5.2) |
@vslavik thanks for answering. I have opened vslavik/poedit#875 to describe the issue. I thought that we had already discussed before (except in this PR), but I cannot find where anymore. @seanbudd, converting again to draft until vslavik/poedit#875 is clarified. |
Link to issue number:
None
Summary of the issue:
With poedit 3.5 some panes containing static text have become focusable, but their content is not reported; these panes include: the context (used with
pgettext
), the type of formatting (e.g. when using%s
or{}
) and the warnings/errors (e.g. when the source string and the translated one do not end with the same punctuation). The consequence when navigating with tab is that the user hears "pane" instead of its content.Description of user facing changes
In poedit, one will now have the context or errors reported when tabbing to these locations.
Description of development approach
For these panes, I have implemented
_get_focusRedirect
so that NVDA considers the static text inside the pane to have the focus instead of the pane itself, even if the static text isn't normally focusable.Testing strategy:
Tested tab navigation and object reporting (
NVDA+tab
)Known issues with pull request:
I am just not sure if it is problematic to redirect focus to a non-focusable object.
Code Review Checklist:
@coderabbitai summary
Cc @LeonarddeR, since you have recently worked on poedit module, and in case you are still available for a review.