Skip to content
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

Proposal for adding accessibility in Termux #4175

Open
Smit-TV opened this issue Sep 28, 2024 · 0 comments
Open

Proposal for adding accessibility in Termux #4175

Smit-TV opened this issue Sep 28, 2024 · 0 comments

Comments

@Smit-TV
Copy link

Smit-TV commented Sep 28, 2024

Feature description

this function very supported for talkback users

Additional information


The accessibility issue of Termux for TalkBack is very disappointing.

  • I have programmed for Android and can suggest solutions:
  1. Use EditText instead of View.
    However, this method has a drawback, for example:
    private CharSequence getText would need to be changed to public Editable getText.
  2. Use AccessibilityEvent#TYPE_ANNOUNCEMENT (https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent#TYPE_ANNOUNCEMENT).
    Using this method doesn't require you to be a genius; you just need to handle the KeyEvent.KEYCODE_DEL event (https://developer.android.com/reference/android/view/KeyEvent#KEYCODE_DEL).
    • We can simply announce the deleted text or character.
  3. Add the ability to select text using the volume keys.
    In general, Android screen readers work like this with EditText, but unfortunately, we have View instead :(
    We should also remember to announce the selected character.
  4. How about adding descriptions for the states of the Ctrl, Alt, Caps, etc. keys? AccessibilityNodeInfo#setStateDescription (https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#setStateDescription(java.lang.CharSequence)).
    Simply set the state to on and off when pressed and off when the app starts.
  • I hope at least points 2 and 3 can be implemented by someone; overall, it would be sufficient.
    I wish the project to flourish.

Let me know if you need any further assistance!

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

No branches or pull requests

1 participant