toptal / toptal/keycodes

[inconsistency] F20-F32 have uppercase F, F1 to F19 have lowercase F

Open
#347 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

Why are the F keys from F1 to F19 all f<number> and then F20 to F32 are F<number> for the description field?

See:
https://github.com/toptal/keycodes/blob/e2a63f01de614f74bad9affe6be4689af8c1f159/lib/keycodes/with-events.ts#L1169-L1175

Also the fields of F20-F32 are not completely filled in like the other F keys.

Image showing the keyevent table where you can see the difference between lowercase f and uppercase F really good

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

Inspect lib/keycodes/with-events.ts around lines 1169-1175 and compare the F1-F19 entries with F20-F32. Normalize the F-key description fields and fill the incomplete F20-F32 fields to match the other entries, then verify the key event table remains consistent.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.