Skip to content

Instantly share code, notes, and snippets.

@jchatard
Created August 8, 2023 19:51
Show Gist options
  • Save jchatard/822e5ae1c9658825f3bbee6ac632706a to your computer and use it in GitHub Desktop.
Save jchatard/822e5ae1c9658825f3bbee6ac632706a to your computer and use it in GitHub Desktop.
BaseKeyCodeBazecoreQwertyISO
const keycodes = [
{
code: 41,
labels: {
primary: "ESC"
}
},
{
code: 58,
labels: {
primary: "F1"
}
},
{
code: 59,
labels: {
primary: "F2"
}
},
{
code: 60,
labels: {
primary: "F3"
}
},
{
code: 61,
labels: {
primary: "F4"
}
},
{
code: 62,
labels: {
primary: "F5"
}
},
{
code: 63,
labels: {
primary: "F6"
}
},
{
code: 64,
labels: {
primary: "F7"
}
},
{
code: 65,
labels: {
primary: "F8"
}
},
{
code: 66,
labels: {
primary: "F9"
}
},
{
code: 67,
labels: {
primary: "F10"
}
},
{
code: 68,
labels: {
primary: "F11"
}
},
{
code: 69,
labels: {
primary: "F12"
}
},
{
code: 70,
labels: {
primary: "Print"
}
},
{
code: 71,
labels: {
primary: "Scroll"
}
},
{
code: 72,
labels: {
primary: "Pause"
}
},
{
code: 83,
labels: {
primary: "Num"
}
},
{
code: 84,
labels: {
primary: "/"
}
},
{
code: 85,
labels: {
primary: "*"
}
},
{
code: 86,
labels: {
primary: "-"
}
},
{
code: 53,
labels: {
primary: "`"
}
},
{
code: 30,
labels: {
primary: "1"
}
},
{
code: 31,
labels: {
primary: "2"
}
},
{
code: 32,
labels: {
primary: "3"
}
},
{
code: 33,
labels: {
primary: "4"
}
},
{
code: 34,
labels: {
primary: "5"
}
},
{
code: 35,
labels: {
primary: "6"
}
},
{
code: 36,
labels: {
primary: "7"
}
},
{
code: 37,
labels: {
primary: "8"
}
},
{
code: 38,
labels: {
primary: "9"
}
},
{
code: 39,
labels: {
primary: "0"
}
},
{
code: 45,
labels: {
primary: "-"
}
},
{
code: 46,
labels: {
primary: "="
}
},
{
code: 42,
labels: {
primary: ""
}
},
{
code: 73,
labels: {
primary: "Ins"
}
},
{
code: 74,
labels: {
primary: "Home"
}
},
{
code: 75,
labels: {
primary: "Page"
}
},
{
code: 95,
labels: {
primary: "7"
}
},
{
code: 96,
labels: {
primary: "8"
}
},
{
code: 97,
labels: {
primary: "9"
}
},
{
code: 87,
labels: {
primary: "+"
}
},
{
code: 43,
labels: {
primary: ""
}
},
{
code: 20,
labels: {
primary: "Q"
}
},
{
code: 26,
labels: {
primary: "W"
}
},
{
code: 8,
labels: {
primary: "E"
}
},
{
code: 21,
labels: {
primary: "R"
}
},
{
code: 23,
labels: {
primary: "T"
}
},
{
code: 28,
labels: {
primary: "Y"
}
},
{
code: 24,
labels: {
primary: "U"
}
},
{
code: 12,
labels: {
primary: "I"
}
},
{
code: 18,
labels: {
primary: "O"
}
},
{
code: 19,
labels: {
primary: "P"
}
},
{
code: 47,
labels: {
primary: "["
}
},
{
code: 48,
labels: {
primary: "]"
}
},
{
code: 40,
labels: {
primary: ""
}
},
{
code: 76,
labels: {
primary: "Del"
}
},
{
code: 77,
labels: {
primary: "End"
}
},
{
code: 78,
labels: {
primary: "Page"
}
},
{
code: 57,
labels: {
primary: ""
}
},
{
code: 4,
labels: {
primary: "A"
}
},
{
code: 22,
labels: {
primary: "S"
}
},
{
code: 7,
labels: {
primary: "D"
}
},
{
code: 9,
labels: {
primary: "F"
}
},
{
code: 10,
labels: {
primary: "G"
}
},
{
code: 11,
labels: {
primary: "H"
}
},
{
code: 13,
labels: {
primary: "J"
}
},
{
code: 14,
labels: {
primary: "K"
}
},
{
code: 15,
labels: {
primary: "L"
}
},
{
code: 51,
labels: {
primary: ";"
}
},
{
code: 52,
labels: {
primary: "'"
}
},
{
code: 49,
labels: {
primary: "#"
}
},
{
code: 92,
labels: {
primary: "4"
}
},
{
code: 93,
labels: {
primary: "5"
}
},
{
code: 94,
labels: {
primary: "6"
}
},
{
code: 225,
labels: {
primary: ""
},
},
{
code: 100,
labels: {
primary: "\\"
}
},
{
code: 29,
labels: {
primary: "Z"
}
},
{
code: 27,
labels: {
primary: "X"
}
},
{
code: 6,
labels: {
primary: "C"
}
},
{
code: 25,
labels: {
primary: "V"
}
},
{
code: 5,
labels: {
primary: "B"
}
},
{
code: 17,
labels: {
primary: "N"
}
},
{
code: 16,
labels: {
primary: "M"
}
},
{
code: 54,
labels: {
primary: ","
}
},
{
code: 55,
labels: {
primary: "."
}
},
{
code: 56,
labels: {
primary: "/"
}
},
{
code: 229,
labels: {
primary: ""
},
},
{
code: 82,
labels: {
primary: ""
}
},
{
code: 89,
labels: {
primary: "1"
}
},
{
code: 90,
labels: {
primary: "2"
}
},
{
code: 91,
labels: {
primary: "3"
}
},
{
code: 88,
labels: {
primary: "Enter"
}
},
{
code: 224,
labels: {
primary: "Ctrl"
},
},
{
code: 227,
labels: {
primary: ""
},
},
{
code: 226,
labels: {
primary: "Alt"
},
},
{
code: 44,
labels: {
primary: ""
}
},
{
code: 230,
labels: {
primary: "Alt Gr"
},
},
{
code: 231,
labels: {
primary: ""
},
},
{
code: 101,
labels: {
primary: ""
}
},
{
code: 228,
labels: {
primary: "Ctrl"
},
},
{
code: 80,
labels: {
primary: ""
}
},
{
code: 81,
labels: {
primary: ""
}
},
{
code: 79,
labels: {
primary: ""
}
},
{
code: 98,
labels: {
primary: "0"
}
},
{
code: 99,
labels: {
primary: "."
}
},
{
code: 104,
labels: {
primary: "F13+"
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment