Skip to content

Fix accessibility of PTYTextView#123

Closed
dusek wants to merge 8 commits intognachman:masterfrom
dusek:accessibility-ptytextview
Closed

Fix accessibility of PTYTextView#123
dusek wants to merge 8 commits intognachman:masterfrom
dusek:accessibility-ptytextview

Conversation

@dusek
Copy link
Contributor

@dusek dusek commented Apr 7, 2013

Support VoiceOver, Zoom and ZoomText for Mac.

More details in individual commit messages. Main focus was
to get the visual bounds working properly, and while at it,
I fixed a few other small things as well.

dusek added 8 commits April 7, 2013 14:33
* the bounds must be returned in screen coordinates
* lines, as seen by VoiceOver, are visual lines,
  i.e. softlines. Adjust _allText to respect that when computing the
  linebreak offsets, which also fixes the visual bounds for cases
  where softlines occur
Now when moving through characters/words with VoiceOver, the visual
bounds of VoiceOver cursor match exactly
Now Zoom users (System Preferences > Accessibility > Zoom) enjoy Zoom
following the iTerm2 cursor so that it always stays in the magnified
portion of the screen.

Unfortunately this does not work with ZoomText for Mac as it uses the
accessibility methods (accessibilityAttributeValue*) which seem to not
provide accurate information (more specifically,
lineBreak{Char,Index}Offsets_ are nil - when VoiceOver is running,
they are not and ZoomText for Mac works fine).
@gnachman
Copy link
Owner

Thanks for the patch! Merged.

@gnachman gnachman closed this Apr 16, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants