Why Keyboard shortcuts and accessibility in other keyboard languages rarely works

Wikipedia

The problem in the code

How to fix it?

  • to stop using event.code and switch to event.key
  • based on the language of the user, know what event.code refers to what key on their keyboard
This line turns the “/” into a number
Next line where b has been turned into “7”
and later in Facebook.com code it turns into “shift 7” 😕
Here I switch to a English keyboard and here is how it looks when you type “/”. You can see o only has two commands, “shift ?” and “/”, no “shift 7”!

Slack also does it wrong!

But we need this change! Please share this with your developers that focus on accessibility!

--

--

--

I really like building stuff with React.js and Docker and also Meetups ❤

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to fetch all collectibles from phantom wallet connected to Solana network?

Understanding The React Source Code VII

Without Login Refresh Power BI Dataset using PowerShell Power BI Rest API #TAIK18 (23–2)

JavaScript Variables : let vs const

Crack Node.js Interview

Nested For Loops with User Input as an Iterative

Why You Should Learn JavaScript

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Kevin Simper

Kevin Simper

I really like building stuff with React.js and Docker and also Meetups ❤

More from Medium

Accessibility: Common mistakes to avoid

the office congratulation meme which says high score on accessibility audit tools doesnt mean app is accessible

The Future of Front End Development: What You Need To Know — NoCodeAI.Cloud

CSS variables are the secret sauce in your React function components 🌶️

What is Atomic design?