Report destination of link in Word / Outlook legacy#17292
Merged
Conversation
Contributor
Author
|
@seanbudd, I have passed this PR to ready. Let me know if you wish me to move the original code in suitable text info object(s) rather than to keep it in the global commands class. Moving this code would surely be cleaner regarding the code organization; but I am more likely to break existing use cases. If you push for moving this code, have you an idea where I should move it? (advice appreciated) |
seanbudd
reviewed
Oct 16, 2024
seanbudd
reviewed
Oct 16, 2024
Co-authored-by: Sean Budd <seanbudd123@gmail.com>
seanbudd
approved these changes
Oct 17, 2024
See test results for failed build of commit 9167cb9e7d |
See test results for failed build of commit c1eafa4af3 |
See test results for failed build of commit 46e38411b8 |
seanbudd
approved these changes
Nov 4, 2024
5 tasks
seanbudd
pushed a commit
that referenced
this pull request
Dec 11, 2024
When in PowerPoint, NVDA+K does not work to report a link. Description of user facing changes In PowerPoint slides (edition mode), pressing NVDA+K will now report the link destination. This works in text areas as well as on shapes / charts / images that are links. Also 2 small fixes: Restored the Copy and Close buttons of the browseable message of NVDA+K that were removed by mistake in Report destination of link in Word / Outlook legacy #17292 In Windows UI, e.g. settings, pressing NVDA+K on a link does not report anymore that there is no link; it rather reports that the destination cannot be reported. Description of development approach Use PowerPoint object model Changed the global strategy to retrieve a link: first try from text infos; if not supported, try from the focused object.
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:
None
Summary of the issue:
The command to report the destination of a link (
NVDA+k) does not work in Word or Outlook when using object model (by default for Windows 10 users or users of older Office versions).Description of user facing changes
NVDA+kwill wow report the destination of the link in Word/Outlook object model.Description of development approach
_getLinkDataAtCaretPositionfunction to report the required information on a link in aWordDocumentTextInfo. Other text info classes can define such functions in the future to support the command in other content types.Testing strategy:
Manual tests:
Known issues with pull request:
None
Code Review Checklist:
@coderabbitai summary