Ensure that NVDA no longer checks validity of input for non contracted braille tables when in text controls#12850
Conversation
…d braille tables when in text controls
|
@LeonarddeR Even though this is still a draft I'll appreciate a look from you if time permits since you've introduced this code in the first place and you're much more familiar with the brailleInput code. |
|
I think we really need to unit test this somehow. There are simply too much edge cases. |
|
@lukaszgo1 I had made the same patch a short time ago for testing. It seems to me that it broke the good behavior of grade 1 tables. |
Would you be able to provide an example of input which worked before this patch and now is broken?
With the code from this PR entering the above combination results in 3D which is I believe an expected input. |
|
@lukaszgo1 Please forget my previous comment. Indeed, your PR fixes the issue for contacted tables. Just that the issue still remains with literary tables, but no regression introduced. Sorry for the noise. |
Would you be able to give an STR for an issue with literary tables so that it can be fixed and / or unit test created for this? |
|
@AAClause Have you seen my latest comment? It would be nice to have a STR reproducing your issue as that is the only thing getting this blocked from being converted from a draft. |
|
@LeonarddeR While I agree with your opinion that unit tests for |
|
I guess NV Access will have to decide about that. |
…onger checks validity of input for non contracted braille tables when in text controls — See <nvaccess/nvda#12850>
Link to issue number:
Fixes #12667
Summary of the issue:
When entering text from a braille display NVDA reports that it is unsupported even though entered combination is valid. This check has been introduced in #7843 to prevent a situation in which someone uses contracted table outside text content and enters a combination which cannot be converted to a single character (a good example is entering dots 356 using English UK Grade 2 which is a contraction for "was"). The check however was too broad and didn't take into account that for literary / computer braille tables single combination of dots can either always be converted to a single character, or if not it does not result in multiple characters i.e. number sign.
Description of how this pull request fixes the issue:
Now the check applies only when the table in use is contracted.
Testing strategy:
Known issues with pull request:
brailleInputis in dire need of unit tests so that future work in this area is safer - I've created braileInput module needs a unit test coverage. #12869 to track thisChange log entries:
Bug fixes
Code Review Checklist: