Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

✨ macOS Accessibility kAXLineForIndexParameterizedAttribute not obtainable through the AX APIs #115

Closed
Labels
enhancementNew feature or request
@godbout

Description

Description

it should be possible to get the current line number through the AX APIs by giving a location in the TextArea. currently it doesn't work and the API returns parameterizedAttributeUnsupported. might be linked to macOS Accessibility data missing in CodeEdit. (see #114)

this makes it impossible to apply Vim motions in CodeEdit through the AX APIs. a real pity!

Alternatives Considered

at that point i can't find any alternatives, because getting the right line number is a crucial part for navigating through the TextArea with the AX APIs.

Additional Context

calling AXUIElementCopyParameterizedAttributeValue(axFocusedElement, kAXLineForIndexParameterizedAttribute as CFString, location as CFTypeRef, &currentLine) returns parameterizedAttributeUnsupported rather than filling the currentLine with... the current line number. location is a character location in the TextArea (0 for beginning of document).

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    🏁 Complete

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /