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

Success Criterion 2.1.4: Character Key Shortcuts (Level A) #76

Closed
samogami opened this issue Dec 12, 2022 · 19 comments
Closed

Success Criterion 2.1.4: Character Key Shortcuts (Level A) #76

samogami opened this issue Dec 12, 2022 · 19 comments

Comments

@samogami
Copy link
Contributor

samogami commented Dec 12, 2022

From Success Criterion 2.1.4:

If a keyboard shortcut is implemented in content using only letter (including upper- and lower-case letters), punctuation, number, or symbol characters, then at least one of the following is true:

  • Turn off: A mechanism is available to turn the shortcut off;
  • Remap: A mechanism is available to remap the shortcut to include one or more non-printable keyboard keys (e.g., Ctrl, Alt);
  • Active only on focus: The keyboard shortcut for a user interface component is only active when that component has focus.
Additional Guidance When Applying Success Criterion 2.1.4 to Non-Web Documents and Software:

Note The WCAG2ICT interpretation is that the WCAG definition of a keyboard shortcut does not include a long press of a key (2 seconds or more) or other accessibility features provided by the platform. See the [keyboard shortcut](https://w3c.github.io/wcag2ict/#dfn-keyboard-shortcuts) definition for more details.

@samogami
Copy link
Contributor Author

Some additional thoughts on SC 2.1.4:

  1. Additional note: SC is only applicable when the system provides a keyboard interface.
  2. Additional note: Non-character keys include but are not limited to: Function keys (F1...), Esc, Locking keys (Caps Lock, Num Lock, ...), Shift, Backspace, and arrow keys.
  3. Some devices do not include non-character keys other than shift. Would the SC still be applicable?
  4. The understanding SC 2.1.4 primarily focuses on the benefit to speech input interface users; many systems do not provide this interface type and have limited physical input options. Is the SC applicable when software does not provide a speech input interface for users?

@maryjom
Copy link
Contributor

maryjom commented Jan 9, 2023

@samogami Is this ready to have an initial review?

@maryjom
Copy link
Contributor

maryjom commented Jan 18, 2023

My thoughts, marked with "MJ:" on your points in the Dec. 13 comment above:

  1. Additional note: SC is only applicable when the system provides a keyboard interface.

MJ: Should we instead state that non-web documents and software designed for and installed on devices that have no keyboard interface would automatically meet this requirement?

  1. Additional note: Non-character keys include but are not limited to: Function keys (F1...), Esc, Locking keys (Caps Lock, Num Lock, ...), Shift, Backspace, and arrow keys.

MJ: I wonder if this is needed, as WCAG already gives a couple of examples (Ctrl, Alt). I'm not sure I want to get into a debate on what modifier keys are OK vs. not OK or what are best practice. I would prefer to avoid providing sufficient technique details in this document. If the group feels that WCAG should expand on what keys are recommended/acceptable, we should ask them to clarify and open an issue.

If this note is kept, I suggest using the phrase "Non-printable keyboard keys" instead of "Non-character keys" as stated in the SC.

  1. Some devices do not include non-character keys other than shift. Would the SC still be applicable?

MJ: I think it would still be applicable. The method of meeting the SC in this case would be to have a setting to turn off the shortcut keys. Remapping keys wouldn't be possible due to the lack of other non-character keys. One could also ensure that character key shortcut activation is limited to the particular UI component that has focus (e.g. in menus) rather than globally available - these are both sufficient techniques in WCAG.

  1. The Understanding SC 2.1.4 primarily focuses on the benefit to speech input interface users; many systems do not provide this interface type and have limited physical input options. Is the SC applicable when software does not provide a speech input interface for users?

MJ: I think it would still be applicable. Though it is primarily important for speech input, keyboard-only users who have dexterity challenges can also be prone to accidentally hitting keys.

@Lboniello
Copy link

@samogami & @maryjom - When using "Keyboard interface" does this include or also mean tactile input device? If yes, can we shift to using that language instead, as it covers keyboard and others, and is how ADA and other standards reference physical input devices (vs on screen keyboards or inputs)?

(No need to discuss, incorporate if you think it applies, do not incorporate if you do not think it applies here).

@GreggVan
Copy link

GreggVan commented Jan 20, 2023 via email

@bruce-usab
Copy link
Contributor

From call 1/26, @GreggVan suggested that note might clarify that keys that are held for more than 2 seconds are not keyboard shortcut

@GreggVan
Copy link

From the call - the suggestions (as I remember them) were

  1. remove the current 2 notes

  2. replace them with
    Note: The task force interpreted that the "turn off shortcut" option in the SC included both turning off an individual shortcut or a mechanism that turned off all shortcuts.

  3. Modifying our statement on the applicability to say that
    "This SC applies to both [nonweb softw and docs] if you replace xxxx with yyyyy as long as definition of "keyboard shortcut" did not include keys held down for more that 2 seconds before activation."

This would then point the reader to the definition where we could say
NOTE: The task force interpreted of keyboard shortcut did not include actions caused by keys that are held down for more that 2 seconds before activation

The note on the SC is important - because, if the Working group rejected our note on the definition - there needs to be a notation on the SC itself that Task force would no longer accept it as written with just the word substitution.

@loicmn
Copy link

loicmn commented Jan 26, 2023

From the call, I was asked to write down my position, and I will do so by answering to Gregg's proposal:

  1. I agree to remove the current 2 notes
  2. I don't agree to add a note to explain that "turning off all shortcuts" is a way of meeting this SC. The reason is that this also happens for web content, and there is nothing specific to "non-web software and documents" for this note. If the WCAG2ICT TF agrees that it is important to clarify this idea of turning off all shortcuts, then I think that we should ask AG for this note to be included in WCAG 2.2.
  3. I agree to have some form of note to point to the definition of "keyboard shortcut". What I don't know is the best approach for it. It could be made as Gregg's proposes, or it could be a note or an "note to editors". Whatever works best for the TF.

@maryjom
Copy link
Contributor

maryjom commented Jan 26, 2023

@mapluke @trog Please add your thoughts in this issue so we can all learn about your concerns indicated in the poll during the 26 January meeting (See the meeting minutes):

Poll: Clarify second note that individual or all at once turning off satisfies..., add Gregg's proposed note regarding definition and address in the definition of keyboard shortcuts.

@maryjom
Copy link
Contributor

maryjom commented Jan 30, 2023

I have a proposal for the definition of "keyboard shortcut".

keyboard-shortcuts

From the WCAG 2.0 definition for keyboard shortcut:

alternative means of triggering an action by the pressing of one or more keys

Additional Guidance When Applying the Definition of “keyboard shortcut” to Non-Web Documents and Software:

This applies directly as written and as described in the WCAG 2.2 glossary.

Note: A key command issued by a long press of a key (2 seconds or more) is not considered a keyboard shortcut. Such commands often occur when there are limited keys, or no modifier keys, present on a device.

@samogami
Copy link
Contributor Author

samogami commented Feb 1, 2023

Propose that:

  1. Remove Note 2
  2. Rewrite Note 1 in SC

Note: Long press of a key is not considered a keyboard shortcut. See the keyboard shortcut definition for more details.

  1. Add in the WCAG2ITC definitions for keyboard shortcut

NOTE
A key command issued by a long press of a key (2 seconds or more) is not considered a keyboard shortcut. Such commands often occur when there are limited keys, or no modifier keys, present on a device.

@maryjom
Copy link
Contributor

maryjom commented Feb 2, 2023

@samogami This seems a reasonable approach, though on closer reading of Gregg's original proposed text we may want to say "long key press (2 seconds or more) before activation". We'll discuss in today's meeting.

@mapluke
Copy link

mapluke commented Feb 2, 2023

@mapluke @trog Please add your thoughts in this issue so we can all learn about your concerns indicated in the poll during the 26 January meeting (See the meeting minutes):

Poll: Clarify second note that individual or all at once turning off satisfies..., add Gregg's proposed note regarding definition and address in the definition of keyboard shortcuts.

My only concern was related to the way that the long press issue was handled - I now no longer have any concerns.

@bruce-usab
Copy link
Contributor

bruce-usab commented Feb 2, 2023

I am noting that the "at least 2 second" with 508 is under hardware. 407.4 Key Repeat

Where a keyboard with key repeat is provided, the delay before the key repeat feature is activated shall be fixed at, or adjustable to, 2 seconds minimum.

@maryjom
Copy link
Contributor

maryjom commented Feb 7, 2023

@ChrisLoiselle The text has been updated in this issue, so you can make the changes in the document now.

@GreggVan
Copy link

GreggVan commented Feb 8, 2023 via email

@maryjom
Copy link
Contributor

maryjom commented Feb 8, 2023

@GreggVan We discussed, agreed upon, and made a resolution on the one note that is now in the very top description in this issue, as well as the definition interpretation content during last week's meeting. See the 2 Feb. meeting minutes for more details and the discussion.

@maryjom
Copy link
Contributor

maryjom commented Mar 1, 2023

AG WG has a survey open until 16 March with AG WG survey results discussion at a TBD future date (after CSUN conference).

@maryjom
Copy link
Contributor

maryjom commented Mar 30, 2023

On 21 March, the AG WG approved this content with changes that have since been merged.

@maryjom maryjom moved this from Todo to Done in WCAG2ICT Note Update Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

8 participants