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

Security Aspects to consider for a React Native Application

JAMstack PWA — Let’s Build a Polling App. with Gatsby.js, Firebase, and Styled-components Pt. 3

Consuming APIs Using the Repository Pattern in Vue.js

The fun of Functions (In JavaScript)

Weird Parts of JavaScript: Working with Date

How to create chrome extension

Stop Spawning Enemies When Player Dies

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

How to Code Swaying Bamboo with CSS🎋

From Global CSS to Component Library

Useful KPIs For Any Frontend Teams And How to Measure Them

How We Have Cloned PulsePlus Website