Skip to content

Instantly share code, notes, and snippets.

@kaldaf
Created December 24, 2022 13:48
Show Gist options
  • Select an option

  • Save kaldaf/e92109c9ec1c5cdc0f0b998d1896d0dc to your computer and use it in GitHub Desktop.

Select an option

Save kaldaf/e92109c9ec1c5cdc0f0b998d1896d0dc to your computer and use it in GitHub Desktop.
All siblings of the keys on the English keyboard
const keysDictionary = [
{ key: "a", siblings: ["q", "w", "s", "z", "x"] },
{ key: "b", siblings: ["v", "g", "h", "n"] },
{ key: "c", siblings: ["x", "d", "f", "v"] },
{ key: "d", siblings: ["s", "e", "r", "f", "c", "x"] },
{ key: "e", siblings: ["w", "s", "d", "r"] },
{ key: "f", siblings: ["d", "r", "t", "g", "v", "c"] },
{ key: "g", siblings: ["f", "t", "y", "h", "b", "v"] },
{ key: "h", siblings: ["g", "y", "u", "j", "n", "b"] },
{ key: "i", siblings: ["u", "j", "k", "o"] },
{ key: "j", siblings: ["h", "u", "i", "k", "m", "n"] },
{ key: "k", siblings: ["j", "i", "o", "l", "m"] },
{ key: "l", siblings: ["k", "o", "p"] },
{ key: "m", siblings: ["n", "j", "k"] },
{ key: "n", siblings: ["b", "h", "j", "m"] },
{ key: "o", siblings: ["i", "k", "l", "p"] },
{ key: "p", siblings: ["o", "l"] },
{ key: "q", siblings: ["w", "a", "s"] },
{ key: "r", siblings: ["e", "d", "f", "t"] },
{ key: "s", siblings: ["a", "w", "e", "d", "x", "z"] },
{ key: "t", siblings: ["r", "f", "g", "y"] },
{ key: "u", siblings: ["y", "h", "j", "i"] },
{ key: "v", siblings: ["c", "f", "g", "b"] },
{ key: "w", siblings: ["q", "e", "a", "s"] },
{ key: "x", siblings: ["z", "a", "s", "d", "c"] },
{ key: "y", siblings: ["t", "g", "h", "u"] },
{ key: "z", siblings: ["a", "s", "x"] },
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment