SDL icon indicating copy to clipboard operation
SDL copied to clipboard

Feature Request: Enhanced Keyboard Hook for Accessibility Compatibility with Screen Readers like JAWS

Open bobi6666 opened this issue 1 year ago • 2 comments

Hello SDL Team,

I'm writing to propose an enhancement in SDL's keyboard handling to improve compatibility with screen readers, particularly JAWS by Freedom Scientific, which is widely used by visually impaired individuals.

Issue Description: Currently, there seems to be a conflict where JAWS intercepts certain keyboard inputs that are crucial for SDL-based applications. This interception disrupts the user experience, especially for those relying on these applications for accessibility purposes.

Proposed Solution: I suggest implementing an advanced keyboard hook in SDL that can circumvent this issue. The key aspects of this feature would be:

Selective Key Hooking: The hook should selectively prevent JAWS from intercepting specific keys that are essential for the SDL application. This would allow SDL apps to receive and handle these key inputs without interference.

Dynamic Hook Management: The hook should automatically disengage when the SDL window is minimized (e.g., via Windows + M) and re-engage when the window is active again. This ensures that the screen reader's functionality remains uninterrupted during SDL inactivity.

Customizable Key Exceptions: It would be highly beneficial if users could add specific keys to the hook as exceptions. For instance, allowing the Windows key or other modifiers to pass through, so screen reader shortcuts that use these keys remain functional.

Compatibility with Screen Readers: While the focus is on JAWS, ideally, this feature should be compatible with other screen readers as well, enhancing SDL's overall accessibility.

I believe this enhancement will significantly improve the experience for visually impaired users, making SDL applications more accessible and user-friendly.

Thank you for considering this request. I look forward to your thoughts and am happy to provide further details or clarification if needed.

Best regards, [Peter]

bobi6666 avatar Jan 28 '24 21:01 bobi6666

Sure, feel free to create a draft PR for review. Even it's not something we put into the core SDL right away, it'll be available in case we want to add it in the future or other people come along with a similar need.

slouken avatar Jan 29 '24 02:01 slouken

how to make this draft pr for review?

2024-01-29 3:13 GMT+01:00, Sam Lantinga @.***>:

Sure, feel free to create a draft PR for review. Even it's not something we put into the core SDL right away, it'll be available in case we want to add it in the future or other people come along with a similar need.

-- Reply to this email directly or view it on GitHub: https://github.com/libsdl-org/SDL/issues/8944#issuecomment-1913846333 You are receiving this because you authored the thread.

Message ID: @.***>

bobi6666 avatar Jan 29 '24 11:01 bobi6666