Skip to content
Pandus

Recommended practice Priority: Minor

Several elements use the same keyboard shortcut

The page defines keyboard shortcuts with the accesskey attribute, and two or more elements share the same key. This is a recommended practice, not a WCAG AA requirement.

This text was translated automatically and has not been reviewed by a native speaker yet.

Why it matters to your customers

A keyboard user who presses the shortcut may land on a different element than expected, or nothing happens. Shortcuts can also clash with those of the browser or screen reader. Few shoppers use them, so the effect on sales is small.

Who is affected

  • keyboard users
  • screen reader users
  • people with motor disabilities

How to fix it

Give every accesskey a unique value, or better, remove accesskey attributes altogether: they often conflict with browser and assistive technology shortcuts, and most users do not know they exist. If you need shortcuts, list them on the page and let users turn them off or change them.

On Shopify

Standard themes rarely use accesskey; it usually comes from custom code or an app. Search the theme code for "accesskey" and remove or rename the duplicates.

On Shoptet (CZ)

Usually from custom code added to the shop. Remove or rename the duplicate accesskey in your custom code; if the template adds it, ask Shoptet or a partner.

On PrestaShop

Usually from an older theme or module templates. Search the .tpl files for "accesskey" and remove the duplicates, preferably via a theme override.

On WooCommerce

Usually from a plugin, page builder or an older theme. Search the theme and child theme templates for "accesskey" and fix the duplicates in the child theme.

Fix it with AI

Copy this prompt into ChatGPT, Claude or Copilot and add the HTML of the element. Check the answer before you publish it.

You are an experienced web developer and accessibility specialist. Fix this accessibility problem on my website so that it meets WCAG 2.2 level AA.

Website: [https://…]

## Problem: Several elements use the same keyboard shortcut

The page defines keyboard shortcuts with the accesskey attribute, and two or more elements share the same key. This is a recommended practice, not a WCAG AA requirement.

**How to fix:** Give every accesskey a unique value, or better, remove accesskey attributes altogether: they often conflict with browser and assistive technology shortcuts, and most users do not know they exist. If you need shortcuts, list them on the page and let users turn them off or change them.

## Elements found by the automated check
[Paste the HTML of the element here, or the selector from the Pandus report]

## Requirements
- Change only what is needed; keep the design and how the site works.
- Do not add accessibility overlays or widgets; fix the code or the content.
- Show the corrected code and say in which template or file it goes.
- Explain how to check the fix with the keyboard and a screen reader.

Standards

Not a WCAG success criterion: a recommended practice that makes the site easier to use.

Automated check: axe-core rule accesskeys. dequeuniversity.com, github.com

Guides and tools

Help articles

All rules we check