Message Dialog API take 2#17582
Merged
Merged
Conversation
…logButton` if provided
… rather than normal functions.
Co-authored-by: Sean Budd <sean@nvaccess.org>
# Conflicts: # user_docs/en/changes.md
…button press, but to have a callback property which is a callable suitable for passing to `runScriptModalDialog`.
SaschaCowley
commented
Jan 6, 2025
Member
|
Can you announce the API breaking changes on the mailing list? I think they were missed |
5 tasks
SaschaCowley
added a commit
that referenced
this pull request
May 9, 2025
…e NVDA Menu (#18070) Closes #17947 Supersedes #17991 Summary of the issue: When executing some Remote Access actions via the Remote Access submenu in the NVDA menu, the status is interrupted by the focus changing, making the messages useless. Description of user facing changes Remote Access actions performed via the NVDA menu should now correctly report their status. Description of development approach - Add a `delayedMessage` function to `ui`, based on the approach taken for focusing open blocking modals in #17582. - Remove the now duplicated code, and replace it with a call to `ui.delayedMessage`. - In `_remoteClient.client.RemoteClient`, updated `copyLink`, `pushClipboard`, and `toggleMute`, to use `ui.delayedMessage` instead of `ui.message`, as these methods can be envoked directly from the menu. - Also moved the success message out of `globalCommands.GlobalCommands.script_copyRemoteLink` into `_remoteClient.client.RemoteClient.copyLink`. - Updated `_remoteClient.cues._playCue` to use `ui.delayedMessage` instead of `ui.message`, as the "Disconnect" menu item causes a cue to be issued. This means that cues should work even if issued at the same time as a UI change, and should have very little performance impact. Testing strategy: - Performed the above listed commands with and without a Remote Access session in progress.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Link to issue number:
Closes #13007
Closes #12344
Closes #12353
Summary of the issue:
This is the second PR to merge the message dialog API into NVDA. The previous merge was at
f437723.See #17304 for full implementation details.
The original PR was reverted by #17561, due to #17553 and #17560.
Description of user facing changes
This PR does not, in itself, introduce any end-user facing changes. However, it lays the groundwork for closing a number of issues.
Tasks
Description of development approach
Restored
gui.nvdaControls.MessageDialoginheriting fromContextHelpMixin, which was accidentally lost.Changed
updateCheck.UpdateAskInstallDialog.onUpdateButtonandonPostponeButtonto simply end the modal, returning the appropriate code. Added a static method toUpdateAskInstallDialogwhich returns a callback function which, when given the return code fromUpdateAskInstallDialog, performs the appropriate action. Added a property method to generate this callback function given the attributes of the instance on which it is called.Testing strategy:
Created a portable copy of NVDA (
scons dist), and tested running the CRFT:Added
updateVersionType="snapshot:alpha" tosource/versionInfo.py`, and tested updating with NVDA running from source:Known issues with pull request:
Code Review Checklist:
@coderabbitai summary