w3c / matf

Other
6 stars 1 forks source link

Success Criterion 2.1.4 - Character Key Shortcuts - Level A #7

Open JJdeGroot opened 4 months ago

JJdeGroot commented 4 months ago

Discussion:

15 April 2024 [Source](https://www.w3.org/2024/04/15-matf-minutes.html#t05) How to test single key shortcuts? JJ: this is specifically how do we test this in apps? and how do people do it in websites? I also don't know how you would do it on websites? JJ: there are some default ways in iOS to find out Rachele: for web there are bookmarklets that press all the keys for you, that seems not possible for apps QuintinB: I'm working on figuring out how to test this QuintinB: it is hard to find out discover shortcuts Joe: there are tools to emulate keyboard, that may theoretically be possible, not sure if realistic JJ: this is the Accessibility Scanner app by Google. which runs an accessibility service Some other options in web - look for shortcut instructions in the content, check the code for keydown, keyup and keypress listeners, and of course press all the keys hdv: Rachele's strategy of using bookmarketls is smarter, would recommend that, but if all fails you could manually press all the keys, that should work for apps too JJ: could be cumbersome JJ: we probably want to write an understanding-doc for testing success criteria for apps with one or more ways to test a criterion JJ: on web auditors can look at the source code for answers, with apps you can't unless you are given access to the source code JJ: maybe something to discuss in the next meeting Mick Keane: my experience is that I don't have access to the source code usually, and this is the most challenging part JJ: when I audit I don't use the source code JJ: equivalent to bookmarklets for websites would be automated testing, eg generic code to send key commands etc and apply this to any app… maybe interesting to build some kind of repository with some automated options Create a decision tree to guide testing methods? hdv: maybe solution to source code vs not would be: you can never audit based on source code, because what you're testing is the UI that exists when the source code result is executed I think we need to be careful will only end result testing. For things like roles in accessible names. End user result can be almost the same hdv: you'd always need to test what the user sees, not what the source code in theory would do If you want to check out some of what I am doing for keyboard testing: https://www.ally-keys.com thank Quintin Joe_Humbert right, but if there's a difference, wouldn't you need to test the result instead of the source code? yes. Just need to be careful. Not disagreeing with you

1. Testing Single Key Shortcuts in Apps:

2. Testing Strategies for Web:

3. Documentation and Decision Tree:

4. End Result vs. Source Code:

AlainVagner commented 4 months ago

For mobile apps, we test this SC with an external keyboard. Once the external keyboard is properly configured (full keyboard access on iOS, switch access on Android), we try most of the characters we can input with a keyboard such as a-z, A-Z, 0-9 and symbols and check if an action is done on the app. If something happens on the app, we then check if there is a way to disable or configure the shortcut. (a machine translation of our test)

iadawn commented 2 months ago

Possibly stupid question, but what are the use cases for keyboard shortcuts on a mobile app?