Add Dragonfly accessibility path for text manipulation#964
Open
taherdhanera wants to merge 1 commit into
Open
Conversation
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.
Description
Adds an optional Dragonfly accessibility path for Caster text manipulation commands.
The change keeps the existing clipboard-based implementation as the fallback, but first tries the focused Dragonfly accessibility text model when it is available. That gives
move,grab,replace,remove, and... until ...commands a way to operate through OS accessibility-backed text ranges instead of always selecting/copying through the clipboard.This does not add a new OS accessibility backend or a new dependency. It uses Dragonfly's existing accessibility controller surface and the focused text object that Dragonfly already exposes.
Related Issue
Refs #814
Motivation and Context
Issue #814 asks for integration with OS accessibility APIs for Select-and-Say-style text navigation. In the issue discussion, the preferred direction was to use Dragonfly's existing accessibility controller rather than introducing a separate Caster-specific accessibility plugin. This PR is a first Caster-side integration slice: if Dragonfly can see focused editable text, Caster uses it; if not, behavior falls back to the current clipboard path.
How Has This Been Tested
git diff --checksuccessfully.AI assistance note: this implementation was AI-assisted and manually scoped/reviewed against the existing Caster text manipulation code and Dragonfly accessibility docs. No generated third-party plugin code was copied into the repo.
Types of changes
Checklist
Maintainer/Reviewer Checklist