Fixed a bug where NVDA sometimes was unable to reset the configuration to factory defaults when using the NVDA+control+r command - #16919
Conversation
See test results for failed build of commit 127a0540d0 |
|
Please ensure your code is based off the beta branch so this can be fixed in beta |
|
I have tested your branch and am not able anymore to trigger the error in #16896. Good job! When switching to beta branch, be careful to file formatting. For now, you have 554 modified files, probably an issue with your EOL configuration. |
386d0dd to
0c097d6
Compare
WalkthroughThe recent updates improve the handling of speech cancellation gestures by adapting to the presence of the Changes
Assessment against linked issues
Recent review detailsConfiguration used: .coderabbit.yml Files selected for processing (2)
Additional context usedPath-based instructions (2)
Additional comments not posted (5)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
Link to issue number:
fixes #16896
Summary of the issue:
Sometimes, when pressing the NVDA+control+r command three times, NVDA wouldn't reset the configuration to factory defaults, but instead produce the following error
ERROR - keyboardHandler.internal_keyDownEvent (10:14:40.187) - winInputHook (13232):
internal_keyDownEvent
Traceback (most recent call last):
File "keyboardHandler.pyc", line 245, in internal_keyDownEvent
File "inputCore.pyc", line 535, in executeGesture
AttributeError: 'NoneType' object has no attribute 'suppressClearBrailleRegions'
Description of user facing changes
The user will reliably be able to reset the configuration to factory defaults with the NVDA+control+r command
Description of development approach
the suppressCancelSpeech function is only defined and called if braille.handler is not None, otherwise, speech.cancelSpeech is called
Testing strategy:
Tested by resetting the configuration to factory defaults and restoring the configuration multiple times by using NVDA+control+r. Everything worked as expected for me.
@CyrilleB79 Could you check if it works for you as well?
Known issues with pull request:
None
Code Review Checklist:
Summary by CodeRabbit
New Features
Bug Fixes
braille.handler.