New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
accessibility dictation: first round #9
Conversation
…usj methods on failure
… the different element to serve as the input buffer
…ug_accessibility` setting
Thanks, made revisions |
Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM aside from a few tiny nits.
dictation/dictation_context.py
Outdated
|
||
Sometimes the accessibility context reported by the application is wrong, but fixable in predictable ways (this is most common in Electron apps). This method can be overwritten in those applications to do so. | ||
|
||
TODO(pcohen): it's a it strange to have both this and dictation_current_element; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anything after a ":" gets stripped in actions.list()
output (empirically) so consider moving into a comment.
dictation/electron.py
Outdated
|
||
try: | ||
app.element.AXManualAccessibility = True | ||
except UIErr as e: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can just use except UIErr:
here.
No rush on reviewing this! I figured it would be good to get your thoughts on this first batch of changes, before I go on to push more stuff. I'm probably going to focus on cursorless-on-JetBrains for the rest of the weekend so I'm not blocked on this review.
In this change:
My thought is the
experimental
branch can be a sort of middle ground betweenmain
and our feature branches. Ambitious beta testers could use it and it also gives us a place to merge our development changes together and test them together. We can promote it tomain
afterwards.