toptal / toptal/keycodes

Display different URLs for right and left cmd keys

Open
#313 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.2k
Forks
356
PR merge metrics
No merged PRs in 30d

Description

https://keycodes.vercel.app/ displays different pages for the right cmd key and the left cmd key, however, the URL stays the same: https://keycodes.vercel.app/for/meta.

The same happens for the option keys: https://keycodes.vercel.app/for/alt

The app could show different URLs (https://keycodes.vercel.app/for/alt-left and https://keycodes.vercel.app/for/alt-right) for the two keys since they correspond to different codes.

If this is something that you'd like to have @wesbos, I'd be happy to raise a PR over the weekend!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the routing and key-handling code responsible for the /for/meta and /for/alt pages. Trace how the left and right Command and Option keys are distinguished, then verify that each key produces its corresponding distinct URL, including /for/alt-left and /for/alt-right.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, web-dev
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.